Function at 0x401820
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x608
mov eax, dword [esp + 0x614]
push ebx
push ebp
mov ebp, dword [esp + 0x628]
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov edi, 0x40de98
mov esi, 0x40deaa
cmp dword [eax], 0
je 0x401b70
mov dword [eax], 0
mov eax, dword [esp + 0x620]
push 0x10
push eax
push edi
call fcn.00402a70
mov cl, byte [esp + 0x20]
push ebp
inc cl
mov byte [0x40dea8], 0
mov byte [0x40deaa], cl
call fcn.004016a0
mov edx, dword [esp + 0x62c]
lea eax, [esp + 0x28]
push edx
push 0x40ce48
push eax
call fcn.004023a4
mov edx, dword [0x40c174]
lea ecx, [esp + 0x34]
push ecx
push edx
call sub.ISQLT07C.dll_Ordinal_32
mov eax, dword [0x40c174]
add esp, 0x24
push 0
push 1
push eax
call sub.ISQLT07C.dll_Ordinal_30
add esp, 8
push eax
mov eax, dword [0x40c170]
push eax
push 0
push eax
call sub.ISQLT07C.dll_Ordinal_30
add esp, 8
push eax
call sub.ISQLT07C.dll_Ordinal_8
mov ecx, dword [0x40c170]
add esp, 0x10
mov dword [0x40c984], edi
mov dword [0x40c9a0], esi
push 0
push 1
push 0
push 0
push 0x40c9b8
push 0x64
push ecx
call sub.ISQLT07C.dll_Ordinal_30
add esp, 8
push eax
call sub.ISQLT07C.dll_Ordinal_18
mov eax, ebp
add esp, 0x18
sub eax, 0
je 0x4019cd
sub eax, 2
jne 0x401a82
mov edx, dword [0x40c170]
push 0x40cd90
push 0
push 0x40cd68
push 0
push 0x64
mov dword [0x40cbc4], 0x40e566
mov dword [0x40cbe0], 0x40e13a
mov dword [0x40cbfc], 0x40e562
mov dword [0x40cc18], 0x40e560
mov dword [0x40cc34], esi
mov dword [0x40cc50], 0x40e139
mov dword [0x40cc6c], 0x40e568
mov dword [0x40cc88], 0x40e564
mov dword [0x40cca4], 0x40e138
mov dword [0x40ccc0], 0x40e13d
mov dword [0x40ccdc], 0x40dea9
mov dword [0x40ccf8], 0x40e13c
mov dword [0x40cd14], 0x40e569
mov dword [0x40cd30], edi
mov dword [0x40cd4c], 0x40e0b8
push edx
jmp 0x401a71
mov eax, dword [0x40c170]
push 0x40cbb0
push 0
push 0x40cb88
push 0
push 0x64
mov dword [0x40c9e4], 0x40e566
mov dword [0x40ca00], 0x40e13a
mov dword [0x40ca1c], 0x40e562
mov dword [0x40ca38], 0x40e560
mov dword [0x40ca54], esi
mov dword [0x40ca70], 0x40e139
mov dword [0x40ca8c], 0x40e568
mov dword [0x40caa8], 0x40e564
mov dword [0x40cac4], 0x40e138
mov dword [0x40cae0], 0x40e13d
mov dword [0x40cafc], 0x40dea9
mov dword [0x40cb18], 0x40e13c
mov dword [0x40cb34], 0x40e569
mov dword [0x40cb50], edi
mov dword [0x40cb6c], 0x40e140
push eax
call sub.ISQLT07C.dll_Ordinal_30
add esp, 8
push eax
call sub.ISQLT07C.dll_Ordinal_9
add esp, 0x14
push 2
push 0x40ce08
call sub.ISQLT07C.dll_Ordinal_214
push eax
call fcn.00402a30
add esp, 0xc
test eax, eax
je 0x401afd
push 2
push 0x40ce04
call sub.ISQLT07C.dll_Ordinal_214
push eax
call fcn.00402a30
add esp, 0xc
test eax, eax
je 0x401afd
push 2
push 0x40ce44
call sub.ISQLT07C.dll_Ordinal_214
push eax
call fcn.00402a30
add esp, 0xc
test eax, eax
jne 0x401ad4
mov ebx, 0xfffffffe
jmp 0x401b2e
lea ecx, [esp + 0x218]
lea edx, [esp + 0x18]
push ecx
push 0
push edx
call fcn.00402280
lea eax, [esp + 0x224]
or ebx, 0xffffffff
push eax
call fcn.00401365
add esp, 0x10
jmp 0x401b2e
mov ebx, dword [esp + 0x62c]
mov eax, dword [esp + 0x628]
push ebp
mov ecx, dword [ebx]
add ecx, eax
push ecx
call fcn.00401ba0
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [edx], 0x400
mov eax, dword [ebx]
add eax, 0x400
mov dword [ebx], eax
xor ebx, ebx
mov eax, dword [0x40c170]
push 0x64
push eax
call sub.ISQLT07C.dll_Ordinal_30
push eax
call sub.ISQLT07C.dll_Ordinal_11
mov ecx, dword [0x40c170]
push 0x66
push ecx
call sub.ISQLT07C.dll_Ordinal_30
push eax
call sub.ISQLT07C.dll_Ordinal_27
mov edx, dword [0x40c174]
push 0x66
push edx
call sub.ISQLT07C.dll_Ordinal_30
push eax
call sub.ISQLT07C.dll_Ordinal_27
mov eax, dword [esp + 0x34]
add esp, 0x24
mov ecx, dword [esp + 0x14]
add eax, 4
inc ecx
mov dword [esp + 0x10], eax
cmp ecx, 0xa
mov dword [esp + 0x14], ecx
jl 0x40184c
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x608
ret