Function at 0x10045fb
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x100ce8d
call fcn.01007e40
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x18]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
cmp dword [esi + 0x3c], ebx
je 0x1004875
call fcn.010097cc
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x100465f
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008381
jmp 0x1004875
cmp dword [esi + 0x94], ebx
je 0x10046a9
mov dword [ebp - 0x30], ebx
cmp dword [esi + 0x90], ebx
jbe 0x1004865
xor edi, edi
mov eax, dword [esi + 0x94]
add eax, edi
mov ecx, dword [esi + 0x6c]
cmp ecx, dword [eax + 0x24]
jne 0x1004693
push ebx
push dword [eax]
push dword [ebp - 0x2c]
call fcn.01009c28
inc dword [ebp - 0x30]
add edi, 0x2c
mov eax, dword [ebp - 0x30]
cmp eax, dword [esi + 0x90]
jb 0x1004678
jmp 0x1004865
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x34], 0xa
jae 0x10046c2
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x5c], ebx
inc dword [ebp - 0x34]
jmp 0x10046b0
push dword [esi + 0x6c]
push 0x1001710
lea eax, [ebp - 0x18]
push eax
call sub.framedyn.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
add esp, 0xc
push dword [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.01004278
mov edi, eax
mov dword [ebp - 0x64], edi
mov byte [ebp - 4], 3
push 0x1001704
lea ecx, [ebp - 0x68]
call fcn.01004278
mov ecx, eax
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 4
mov eax, dword [edi]
cmp eax, ebx
je 0x100470d
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
jmp 0x1004710
mov dword [ebp - 0x70], ebx
mov eax, dword [ecx]
cmp eax, ebx
je 0x100471a
mov ecx, dword [eax]
jmp 0x100471c
xor ecx, ecx
mov eax, dword [esi + 4]
mov edx, dword [eax]
lea edi, [ebp - 0x28]
push edi
push ebx
push 0x30
push dword [ebp - 0x70]
push ecx
push eax
call dword [edx + 0x50]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x68]
cmp ecx, ebx
je 0x1004746
call fcn.010042e8
mov dword [ebp - 0x68], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
cmp ecx, ebx
je 0x1004759
call fcn.010042e8
mov dword [ebp - 0x60], ebx
cmp dword [ebp - 0x74], ebx
jge 0x1004766
push dword [ebp - 0x74]
call fcn.01007bdf
push dword [esi + 0xc]
push dword [ebp - 0x28]
call fcn.010064f6
mov dword [ebp - 0x74], eax
cmp eax, ebx
jge 0x100477e
push eax
call fcn.01007bdf
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x5c]
push edx
push 0xa
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
mov dword [ebp - 0x74], eax
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x10047a2
mov dword [ebp - 0x24], ecx
jmp 0x10047ad
cmp eax, 0x40004
je 0x1004821
cmp eax, ebx
jl 0x1004821
xor eax, eax
mov dword [ebp - 0x78], eax
cmp eax, dword [ebp - 0x20]
jae 0x1004800
lea edi, [ebp + eax*4 - 0x5c]
push 0x138d
call fcn.01008fa7
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x10016f8
push dword [edi]
call fcn.0100755f
mov dword [ebp - 0x7c], eax
cmp eax, 1
jne 0x10047ea
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call fcn.01009c28
mov eax, dword [edi]
cmp eax, ebx
je 0x10047f8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
jmp 0x10047b2
cmp dword [ebp - 0x24], ebx
je 0x100477e
jmp 0x1004821
mov dword [ebp - 4], 1
mov dword [ebp - 0x84], ebx
mov edi, dword [ebp - 0x84]
lea edi, [ebp + edi*4 - 0x5c]
mov eax, dword [edi]
cmp eax, ebx
je 0x1004846
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
inc dword [ebp - 0x84]
cmp dword [ebp - 0x84], 0xa
jb 0x100482e
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x1004865
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x2c]
push 0xa
push dword [ebp + 8]
push dword [esi + 0x68]
call fcn.0100a542
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8