Function at 0x406796
Capabilities:
Reference sql statements

Disassembly:
push 0x68
mov eax, 0x40f783
call fcn.0040125e
lea ecx, [ebp - 0x20]
mov esi, dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_void_]
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
call esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 8]
cmp dword [edi + 0x34], ebx
jne 0x4084d6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
mov esi, dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::destructor_void_]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call esi
call fcn.00401923
ret 4
call fcn.00404a86
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4084f7
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0040355c
jmp 0x4067d0
mov byte [ebp - 4], 2
cmp dword [edi + 0x84], ebx
je 0x408536
mov esi, ebx
mov dword [ebp - 0x38], esi
cmp esi, dword [edi + 0x80]
jae 0x4086b7
mov ecx, esi
imul ecx, ecx, 0x2c
mov edx, dword [edi + 0x84]
mov eax, dword [edi + 0x58]
cmp eax, dword [ecx + edx + 0x24]
jne 0x408533
push dword [ecx + edx]
push dword [ebp - 0x24]
call fcn.004020c5
inc esi
jmp 0x408505
mov byte [ebp - 4], 3
mov eax, ebx
mov dword [ebp - 0x3c], eax
cmp eax, 0xa
jae 0x40854b
mov dword [ebp + eax*4 - 0x74], ebx
inc eax
jmp 0x40853c
push dword [edi + 0x58]
push 0x408708
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.framedynos.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__]
add esp, 0xc
push dword [ebp - 0x20]
lea edi, [ebp - 0x2c]
call fcn.004018db
mov esi, eax
mov byte [ebp - 4], 4
push 0x402258
lea edi, [ebp - 0x28]
call fcn.004018db
mov byte [ebp - 4], 5
cmp dword [esi], ebx
je 0x40858c
mov ecx, dword [esi]
mov esi, dword [ecx]
jmp 0x40858e
mov esi, ebx
cmp dword [eax], ebx
je 0x408598
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x40859a
mov edx, ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
mov ecx, dword [eax]
lea edi, [ebp - 0x18]
push edi
push ebx
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x28]
test esi, esi
mov edi, dword [ebp + 8]
je 0x4085c8
call fcn.00401019
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x4085db
call fcn.00401019
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x40]
test eax, eax
jns 0x4085e7
call fcn.0040c71a
push dword [edi + 0x50]
mov eax, dword [ebp - 0x18]
call fcn.004052f7
test eax, eax
js 0x4085e2
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x74]
push edx
push 0xa
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp eax, 1
jne 0x408618
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x48], eax
jmp 0x408623
cmp eax, 0x40004
je 0x408675
test eax, eax
js 0x408675
mov esi, ebx
mov dword [ebp - 0x44], esi
cmp esi, dword [ebp - 0x30]
jae 0x40866f
push 0x138d
call fcn.00401b33
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x408798
push dword [ebp + esi*4 - 0x74]
call fcn.004069ad
cmp eax, 1
jne 0x40865a
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.004020c5
mov ecx, dword [ebp + esi*4 - 0x74]
test ecx, ecx
je 0x40866c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp + esi*4 - 0x74], ebx
inc esi
jmp 0x408625
cmp dword [ebp - 0x34], 0
je 0x4085f6
mov dword [ebp - 4], 2
jmp 0x40869b
mov esi, ebx
cmp esi, 0xa
jae 0x4086b7
mov ecx, dword [ebp + esi*4 - 0x74]
test ecx, ecx
je 0x4086b4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp + esi*4 - 0x74], ebx
inc esi
jmp 0x40869d
mov esi, dword [ebp - 0x24]
push 0xa
pop ecx
mov edx, dword [edi + 0x54]
call fcn.0040df0d
mov dword [ebp - 4], 1
jmp 0x4086ed
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4067d0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x18], ebx
jmp 0x4067d0