Function at 0x100499b0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x101a89e0
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 0x10049cf3
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10049cf3
mov eax, 0x10233908
test eax, eax
je 0x10049cf3
push ebx
push edi
push eax
call fcn.100e9958
add esp, 4
test eax, eax
je 0x10049ccb
mov ecx, 0x102a96e8
call fcn.100cc7a0
mov ecx, 0x102a96e8
call fcn.100ccdf0
mov edi, eax
test edi, edi
je 0x10049ccb
push edi
call fcn.100e9958
add esp, 4
test eax, eax
je 0x10049ccb
mov ecx, 0x102320a8
call fcn.10003150
lea ecx, [esp + 0x1c]
push ecx
push edi
mov ecx, 0x102320a8
call fcn.10003330
mov ebx, eax
mov eax, dword [0x102acd68]
test eax, eax
je 0x10049a7e
push edi
push str.DealDateBase_2___s_
push 0x101fbf40
push 0xffffffffffffffff
push 0x102ac4d4
call fcn.10140e70
add esp, 0x14
test ebx, ebx
jne 0x10049ccb
push 0x102323b8
lea ecx, [esp + 0x40]
call fcn.10102670
push 0x10233908
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.10105ef0
mov eax, dword [0x102acd68]
add esp, 0xc
test eax, eax
je 0x10049ad6
mov eax, dword [esp + 0x3c]
push eax
push str.DealDateBase_3___s_
push 0x101fbf40
push 0xffffffffffffffff
push 0x102ac4d4
call fcn.10140e70
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, 0x102320a8
call fcn.10003350
test eax, eax
jne 0x10049c98
push 0x102323b8
lea ecx, [esp + 0x18]
call fcn.10102670
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x34], 1
push ecx
mov ecx, 0x102320a8
call fcn.100033e0
cmp eax, 0x64
jne 0x10049c88
add esi, 0x24
cmp ebp, dword [esp + 0x40]
je 0x10049c77
mov edx, dword [esp + 0x10]
push 0
push edx
mov ecx, 0x102320a8
call fcn.10003430
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 1
push eax
mov ecx, 0x102320a8
call fcn.10003430
mov ecx, dword [esp + 0x10]
push 2
push ecx
mov ecx, 0x102320a8
mov edi, eax
call fcn.10003430
push eax
lea ecx, [esp + 0x18]
call fcn.101031c0
mov edx, dword [esp + 0x10]
push 3
push edx
mov ecx, 0x102320a8
call fcn.10003400
mov ebx, eax
mov dword [esp + 0x28], edx
test edi, edi
mov dword [esp + 0x24], ebx
je 0x10049bf0
push edi
call fcn.100e9958
mov ebp, eax
mov eax, dword [esi]
lea ebx, [esi + 4]
add esp, 4
cmp eax, ebx
je 0x10049bb8
test eax, eax
je 0x10049bb6
push eax
call fcn.101963e7
add esp, 4
mov dword [esi], ebx
cmp ebp, 0x104
jb 0x10049bd3
lea eax, [ebp + ebp + 2]
push eax
call fcn.101963be
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x10049be8
mov ecx, dword [esi]
push ebp
push edi
push ecx
call fcn.100e9975
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 0x10049c16
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.100e9975
add esp, 0xc
cmp ebx, 0xffffffff
je 0x10049c1e
mov dword [esi - 0x24], ebx
mov eax, dword [0x102acd68]
test eax, eax
je 0x10049c54
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 0x101fbf40
push 0xffffffffffffffff
push 0x102ac4d4
call fcn.10140e70
add esp, 0x28
mov ecx, dword [esp + 0x10]
inc ebp
push ecx
mov ecx, 0x102320a8
mov dword [esp + 0x1c], ebp
add esi, 0x230
call fcn.100033e0
cmp eax, 0x64
je 0x10049b29
test ebp, ebp
jbe 0x10049c88
mov edx, dword [esp + 0x14]
push edx
call fcn.10049fa0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 0
call fcn.10102ee0
jmp 0x10049cba
mov eax, dword [0x102acd68]
test eax, eax
je 0x10049cba
push str.DealDateBase_1
push 0x101fbf40
push 0xffffffffffffffff
push 0x102ac4d4
call fcn.10140e70
add esp, 0x10
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.10102ee0
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebx
je 0x10049ce0
push eax
mov ecx, 0x102320a8
call fcn.10003470
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10049cf3
push eax
mov ecx, 0x102320a8
call fcn.10003450
mov eax, dword [0x102acd68]
test eax, eax
je 0x10049d16
push ebp
push str.DealDateBase____Count:__d_
push 0x101fbf40
push 0xffffffffffffffff
push 0x102ac4d4
call fcn.10140e70
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