Function at 0x10047770
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x101865a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebp, ebp
test esi, esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 8], ebp
je 0x10047ab3
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10047ab3
mov eax, 0x101fba28
test eax, eax
je 0x10047ab3
push ebx
push edi
push eax
call fcn.100c9da4
add esp, 4
test eax, eax
je 0x10047a8b
mov ecx, 0x101fadf8
call fcn.1001aa40
mov ecx, 0x101fadf8
call fcn.1001b250
mov edi, eax
test edi, edi
je 0x10047a8b
push edi
call fcn.100c9da4
add esp, 4
test eax, eax
je 0x10047a8b
mov ecx, 0x101f9f48
call fcn.10002860
lea ecx, [esp + 0x1c]
push ecx
push edi
mov ecx, 0x101f9f48
call fcn.10002a40
mov ebx, eax
mov eax, dword [0x10274670]
test eax, eax
je 0x1004783e
push edi
push str.DealDateBase_2___s_
push 0x101cb848
push 0xffffffffffffffff
push 0x10273ddc
call fcn.10119f10
add esp, 0x14
test ebx, ebx
jne 0x10047a8b
push 0x101fa2d8
lea ecx, [esp + 0x40]
call fcn.100e29f0
push 0x101fba28
lea edx, [esp + 0x40]
push str.SELECT_T1.ip_T1.msg_T1.date_T1.msgtype__t_t_t_t_t_tFROM_record_as_T1__t_t_t_t_t_tWHERE_T1.theirmac___T1.mymac_AND_trim_T1.ip_____AND_T1.date____s
push edx
mov dword [esp + 0x40], ebx
call fcn.100e6270
mov eax, dword [0x10274670]
add esp, 0xc
test eax, eax
je 0x10047896
mov eax, dword [esp + 0x3c]
push eax
push str.DealDateBase_3___s_
push 0x101cb848
push 0xffffffffffffffff
push 0x10273ddc
call fcn.10119f10
add esp, 0x14
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0xffffffffffffffff
push edx
push eax
mov ecx, 0x101f9f48
call fcn.10002a60
test eax, eax
jne 0x10047a58
push 0x101fa2d8
lea ecx, [esp + 0x18]
call fcn.100e29f0
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x34], 1
push ecx
mov ecx, 0x101f9f48
call fcn.10002af0
cmp eax, 0x64
jne 0x10047a48
add esi, 0x24
cmp ebp, dword [esp + 0x40]
je 0x10047a37
mov edx, dword [esp + 0x10]
push 0
push edx
mov ecx, 0x101f9f48
call fcn.10002b40
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 1
push eax
mov ecx, 0x101f9f48
call fcn.10002b40
mov ecx, dword [esp + 0x10]
push 2
push ecx
mov ecx, 0x101f9f48
mov edi, eax
call fcn.10002b40
push eax
lea ecx, [esp + 0x18]
call fcn.100e3540
mov edx, dword [esp + 0x10]
push 3
push edx
mov ecx, 0x101f9f48
call fcn.10002b10
mov ebx, eax
mov dword [esp + 0x28], edx
test edi, edi
mov dword [esp + 0x24], ebx
je 0x100479b0
push edi
call fcn.100c9da4
mov ebp, eax
mov eax, dword [esi]
lea ebx, [esi + 4]
add esp, 4
cmp eax, ebx
je 0x10047978
test eax, eax
je 0x10047976
push eax
call fcn.10173959
add esp, 4
mov dword [esi], ebx
cmp ebp, 0x104
jb 0x10047993
lea eax, [ebp + ebp + 2]
push eax
call fcn.10173930
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x100479a8
mov ecx, dword [esi]
push ebp
push edi
push ecx
call fcn.100c9dc1
mov edx, dword [esi]
add esp, 0xc
mov word [edx + ebp*2], 0
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x100479d6
lea eax, [esi - 0x20]
xor edx, edx
mov edi, eax
push 0xf
push ecx
push eax
mov dword [edi], edx
mov dword [edi + 4], edx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
call fcn.100c9dc1
add esp, 0xc
cmp ebx, 0xffffffff
je 0x100479de
mov dword [esi - 0x24], ebx
mov eax, dword [0x10274670]
test eax, eax
je 0x10047a14
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push eax
push ebx
lea edx, [esi + 4]
push ecx
lea eax, [esi - 0x20]
push edx
push eax
push ebp
push str.DealDateBase_4__i_d____s____s____s____d_
push 0x101cb848
push 0xffffffffffffffff
push 0x10273ddc
call fcn.10119f10
add esp, 0x28
mov ecx, dword [esp + 0x10]
inc ebp
push ecx
mov ecx, 0x101f9f48
mov dword [esp + 0x1c], ebp
add esi, 0x230
call fcn.10002af0
cmp eax, 0x64
je 0x100478e9
test ebp, ebp
jbe 0x10047a48
mov edx, dword [esp + 0x14]
push edx
call fcn.10047d60
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 0
call fcn.100e3260
jmp 0x10047a7a
mov eax, dword [0x10274670]
test eax, eax
je 0x10047a7a
push str.DealDateBase_1
push 0x101cb848
push 0xffffffffffffffff
push 0x10273ddc
call fcn.10119f10
add esp, 0x10
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.100e3260
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebx
je 0x10047aa0
push eax
mov ecx, 0x101f9f48
call fcn.10002b80
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10047ab3
push eax
mov ecx, 0x101f9f48
call fcn.10002b60
mov eax, dword [0x10274670]
test eax, eax
je 0x10047ad6
push ebp
push str.DealDateBase____Count:__d_
push 0x101cb848
push 0xffffffffffffffff
push 0x10273ddc
call fcn.10119f10
add esp, 0x14
mov ecx, dword [esp + 0x24]
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 8