Function at 0x100498a
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x100e1d1
call fcn.010084d8
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 + 0x3c], ebx
je 0x1004c01
call fcn.0100a183
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x10049ee
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008ae2
jmp 0x1004c01
cmp dword [edi + 0x94], ebx
je 0x1004a38
mov dword [ebp - 0x2c], ebx
cmp dword [edi + 0x90], ebx
jbe 0x1004bf1
xor esi, esi
mov eax, dword [edi + 0x94]
add eax, esi
mov ecx, dword [edi + 0x6c]
cmp ecx, dword [eax + 0x24]
jne 0x1004a22
push ebx
push dword [eax]
push dword [ebp - 0x34]
call fcn.0100a630
inc dword [ebp - 0x2c]
add esi, 0x2c
mov eax, dword [ebp - 0x2c]
cmp eax, dword [edi + 0x90]
jb 0x1004a07
jmp 0x1004bf1
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x20], 0xa
jae 0x1004a54
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x84], ebx
inc dword [ebp - 0x20]
jmp 0x1004a3f
push dword [edi + 0x6c]
push 0x1001710
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.010045e0
mov esi, eax
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 3
push 0x1001704
lea ecx, [ebp - 0x3c]
call fcn.010045e0
mov ecx, eax
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 4
mov eax, dword [esi]
cmp eax, ebx
je 0x1004a9f
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
jmp 0x1004aa2
mov dword [ebp - 0x38], ebx
mov eax, dword [ecx]
cmp eax, ebx
je 0x1004aac
mov ecx, dword [eax]
jmp 0x1004aae
xor ecx, ecx
mov eax, dword [edi + 4]
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 0x1004ad8
call fcn.0100465f
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x40]
cmp ecx, ebx
je 0x1004aeb
call fcn.0100465f
mov dword [ebp - 0x40], ebx
cmp dword [ebp - 0x24], ebx
jge 0x1004af8
push dword [ebp - 0x24]
call fcn.01008240
push dword [edi + 0xc]
push dword [ebp - 0x14]
call fcn.01006999
mov dword [ebp - 0x24], eax
cmp eax, ebx
jge 0x1004b10
push eax
call fcn.01008240
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 0x1004b37
mov dword [ebp - 0x48], ecx
jmp 0x1004b42
cmp eax, 0x40004
je 0x1004bb6
cmp eax, ebx
jl 0x1004bb6
xor eax, eax
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x44]
jae 0x1004b98
lea esi, [ebp + eax*4 - 0x84]
push 0x138d
call fcn.01009811
push eax
lea eax, [ebp - 0x18]
push eax
push 0x10016f8
push dword [esi]
call fcn.01007a6d
mov dword [ebp - 0x58], eax
cmp eax, 1
jne 0x1004b82
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x34]
call fcn.0100a630
cmp dword [esi], ebx
je 0x1004b90
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 0x1004b47
cmp dword [ebp - 0x48], ebx
je 0x1004b10
jmp 0x1004bb6
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 0x1004bd8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0xa
jb 0x1004bc0
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1004bf1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x34]
push 0xa
push dword [ebp + 8]
push dword [edi + 0x68]
call fcn.0100b056
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 8