Function at 0x1003c4f
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x100d734
call fcn.01008d48
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x4c], edi
lea ecx, [ebp - 0x1c]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0x34], ebx
je 0x1003ec3
call fcn.0100a058
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x1003cb3
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0100936f
jmp 0x1003ec3
cmp dword [edi + 0x84], ebx
je 0x1003cfd
mov dword [ebp - 0x2c], ebx
cmp dword [edi + 0x80], ebx
jbe 0x1003eb6
xor esi, esi
mov eax, dword [edi + 0x84]
add eax, esi
mov ecx, dword [edi + 0x58]
cmp ecx, dword [eax + 0x24]
jne 0x1003ce7
push ebx
push dword [eax]
push dword [ebp - 0x34]
call fcn.0100a505
inc dword [ebp - 0x2c]
add esi, 0x2c
mov eax, dword [ebp - 0x2c]
cmp eax, dword [edi + 0x80]
jb 0x1003ccc
jmp 0x1003eb6
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x20], 0xa
jae 0x1003d19
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x84], ebx
inc dword [ebp - 0x20]
jmp 0x1003d04
push dword [edi + 0x58]
push 0x1001520
lea eax, [ebp - 0x1c]
push eax
call sub.framedyn.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
add esp, 0xc
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
call fcn.01002bcd
mov esi, eax
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 3
push 0x1001414
lea ecx, [ebp - 0x3c]
call fcn.01002bcd
mov ecx, eax
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 4
mov eax, dword [esi]
cmp eax, ebx
je 0x1003d64
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
jmp 0x1003d67
mov dword [ebp - 0x38], ebx
mov eax, dword [ecx]
cmp eax, ebx
je 0x1003d71
mov ecx, dword [eax]
jmp 0x1003d73
xor ecx, ecx
mov eax, dword [edi + 0x44]
mov edx, dword [eax]
lea esi, [ebp - 0x14]
push esi
push ebx
push 0x30
push dword [ebp - 0x38]
push ecx
push eax
call dword [edx + 0x50]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
je 0x1003d9d
call fcn.01002e9a
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x40]
cmp ecx, ebx
je 0x1003db0
call fcn.01002e9a
mov dword [ebp - 0x40], ebx
cmp dword [ebp - 0x24], ebx
jge 0x1003dbd
push dword [ebp - 0x24]
call fcn.01008aa6
push dword [edi + 0x50]
push dword [ebp - 0x14]
call fcn.01005972
mov dword [ebp - 0x24], eax
cmp eax, ebx
jge 0x1003dd5
push eax
call fcn.01008aa6
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x84]
push edx
push 0xa
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
mov dword [ebp - 0x24], eax
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x1003dfc
mov dword [ebp - 0x48], ecx
jmp 0x1003e07
cmp eax, 0x40004
je 0x1003e7b
cmp eax, ebx
jl 0x1003e7b
xor eax, eax
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x44]
jae 0x1003e5d
lea esi, [ebp + eax*4 - 0x84]
push 0x138d
call fcn.01009fc7
push eax
lea eax, [ebp - 0x18]
push eax
push 0x1001510
push dword [esi]
call fcn.01006aee
mov dword [ebp - 0x58], eax
cmp eax, 1
jne 0x1003e47
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x34]
call fcn.0100a505
cmp dword [esi], ebx
je 0x1003e55
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
jmp 0x1003e0c
cmp dword [ebp - 0x48], ebx
je 0x1003dd5
jmp 0x1003e7b
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], ebx
mov esi, dword [ebp - 0x28]
lea esi, [ebp + esi*4 - 0x84]
mov eax, dword [esi]
cmp eax, ebx
je 0x1003e9d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0xa
jb 0x1003e85
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1003eb6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x34]
push 0xa
push dword [edi + 0x54]
call fcn.0100ad85
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
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 4