Function at 0x4af238
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60dc1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x50], ecx
push 0x46c
push 0x729c80
mov eax, dword [ebp - 0x50]
push eax
call fcn.0054c170
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 8], 0
jne 0x4af28d
push 0x46e
push 0x729c80
call fcn.0059bf80
test eax, eax
je 0x4af28d
int3
xor edx, edx
test edx, edx
jne 0x4af270
mov ecx, dword [ebp - 0x50]
add ecx, 0xa4
call fcn.0053eac2
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x3c], 0
je 0x4af2c4
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 0x14], 0
jbe 0x4af2c4
mov edx, dword [ebp - 0x50]
cmp dword [edx + 0x1c], 0
je 0x4af2c4
mov ecx, dword [ebp - 0x50]
call fcn.004b558d
mov ecx, dword [ebp - 0x50]
call fcn.004b25fa
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x94], 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0053e819
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
je 0x4af31c
push 3
mov ecx, dword [ebp - 0x2c]
call fcn.004b7060
mov dword [ebp - 0x54], eax
jmp 0x4af323
mov dword [ebp - 0x54], 0
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x38], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0xec]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.0053e819
add esp, 4
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xec], 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xf0]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.0053e819
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0xf0], 0
mov edx, dword [ebp - 0x50]
cmp dword [edx + 0x78], 0
je 0x4af3e9
mov dword [ebp - 0x18], 0
jmp 0x4af392
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + 0x80]
jae 0x4af3bd
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x78]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0053e819
add esp, 4
jmp 0x4af389
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x78]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0053e819
add esp, 4
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x80], 0
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 0x7c], 0
je 0x4af45b
mov dword [ebp - 0x1c], 0
jmp 0x4af404
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x84]
jae 0x4af42f
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x7c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.0053e819
add esp, 4
jmp 0x4af3fb
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x7c]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.0053e819
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x7c], 0
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x84], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0xf4]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0053e819
add esp, 4
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xf4], 0
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 4], 0
je 0x4af4ab
push 1
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 4]
push eax
call sub.ODBC32.dll_SQLFreeStmt
mov word [ebp - 0x14], ax
xor ecx, ecx
test ecx, ecx
jne 0x4af489
mov edx, dword [ebp - 0x50]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0xbc], 0
je 0x4af4df
push 1
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xbc]
push edx
call sub.ODBC32.dll_SQLFreeStmt
mov word [ebp - 0x14], ax
xor eax, eax
test eax, eax
jne 0x4af4b7
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0xbc], 0
push 0xf
call fcn.005bbd8a
mov dword [ebp - 4], 0
push 0
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 8]
add ecx, 0x20
call fcn.0052ec6b
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x4af524
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 8]
add ecx, 0x20
call fcn.0052ead1
jmp 0x4af543
mov ecx, dword [0x7518d0]
and ecx, 0x20
test ecx, ecx
je 0x4af543
push str.WARNING:_CRecordset_not_found_in_m_pDatabase__m_listRecordsets._n
push 0x72a0e0
call fcn.00514665
add esp, 8
jmp 0x4af580
mov dword [ebp - 4], 0xffffffff
push 0xf
call fcn.005bbebc
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x90], 0
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0xc4], 1
mov edx, dword [ebp - 0x50]
mov dword [edx + 0xc8], 1
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xe4], 0
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0xd0], 0
mov edx, dword [ebp - 0x50]
mov dword [edx + 0xcc], 0
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xe0], 0
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xa8], 0
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0xe8], 0
mov edx, dword [ebp - 0x50]
mov word [edx + 0x30], 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret