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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438b70
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
mov edi, ecx
mov dword [ebp - 0x30], edi
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 2
push 0
push edi
push 3
call dword [sym.imp.ODBC32.dll_SQLGetDiagFieldW]
push 0x208
call fcn.0041aed7
mov esi, eax
mov dword [ebp - 0x28], eax
add esp, 4
test esi, esi
je 0x408d88
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe4], eax
mov dword [esi + 0xe8], eax
mov dword [esi + 0xec], eax
mov dword [esi + 0xf0], eax
mov dword [esi + 0xf4], eax
mov dword [esi + 0xf8], eax
mov dword [esi + 0xfc], eax
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], eax
mov dword [esi + 0x110], eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x118], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x120], eax
mov dword [esi + 0x124], eax
mov dword [esi + 0x128], eax
mov dword [esi + 0x12c], eax
mov dword [esi + 0x130], eax
mov dword [esi + 0x134], eax
mov dword [esi + 0x138], eax
mov dword [esi + 0x13c], eax
mov dword [esi + 0x140], eax
mov dword [esi + 0x144], eax
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], eax
mov dword [esi + 0x150], eax
mov dword [esi + 0x154], eax
mov dword [esi + 0x158], eax
mov dword [esi + 0x15c], eax
mov dword [esi + 0x160], eax
mov dword [esi + 0x164], eax
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], eax
mov dword [esi + 0x170], eax
mov dword [esi + 0x174], eax
mov dword [esi + 0x178], eax
mov dword [esi + 0x17c], eax
mov dword [esi + 0x180], eax
mov dword [esi + 0x184], eax
mov dword [esi + 0x188], eax
mov dword [esi + 0x18c], eax
mov dword [esi + 0x190], eax
mov dword [esi + 0x194], eax
mov dword [esi + 0x198], eax
mov dword [esi + 0x19c], eax
mov dword [esi + 0x1a0], eax
mov dword [esi + 0x1a4], eax
mov dword [esi + 0x1a8], eax
mov dword [esi + 0x1ac], eax
mov dword [esi + 0x1b0], eax
mov dword [esi + 0x1b4], eax
mov dword [esi + 0x1b8], eax
mov dword [esi + 0x1bc], eax
mov dword [esi + 0x1c0], eax
mov dword [esi + 0x1c4], eax
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x1cc], eax
mov dword [esi + 0x1d0], eax
mov dword [esi + 0x1d4], eax
mov dword [esi + 0x1d8], eax
mov dword [esi + 0x1dc], eax
mov dword [esi + 0x1e0], eax
mov dword [esi + 0x1e4], eax
mov dword [esi + 0x1e8], eax
mov dword [esi + 0x1ec], eax
mov dword [esi + 0x1f0], eax
mov dword [esi + 0x1f4], eax
mov dword [esi + 0x1f8], eax
mov dword [esi + 0x1fc], eax
mov dword [esi + 0x200], eax
mov dword [esi + 0x204], eax
jmp 0x408d8d
xor esi, esi
mov dword [ebp - 0x28], esi
push 0x800
call fcn.0041aed7
mov ebx, eax
mov dword [ebp - 0x24], eax
add esp, 4
test ebx, ebx
je 0x408dbd
push 0x7fe
lea ecx, [ebx + 2]
push 0
push ecx
call fcn.0041d060
add esp, 0xc
xor eax, eax
mov word [ebx], ax
jmp 0x408dc2
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov edx, dword [ebp - 0x20]
xor ecx, ecx
inc ecx
movsx eax, cx
mov dword [ebp - 0x2c], ecx
cmp eax, edx
jg 0x408fe9
lea eax, [ebp - 0x14]
push eax
push 0x400
push ebx
lea eax, [ebp - 0x18]
push eax
push esi
push ecx
push edi
push 3
call dword [sym.imp.ODBC32.dll_SQLGetDiagRecW]
cmp ax, 0x64
je 0x408fd8
push 0x15
xor eax, eax
mov dword [ebp - 0x58], 0
push str.__d__d__SQL_Error:__s
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
call fcn.00402cf0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
cmp dword [ebp - 0x54], 8
push ebx
cmovae eax, dword [ebp - 0x68]
push ecx
mov dword [ebp - 0x34], ecx
movsx ecx, dx
push ecx
push eax
call fcn.00408a50
add esp, 0x10
lea edi, [eax + 1]
test edi, edi
jle 0x409016
xor ebx, ebx
mov ecx, 2
mov eax, edi
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0041aed7
mov esi, eax
add esp, 4
test esi, esi
je 0x408e80
push ebx
push 0
push esi
call fcn.0041d060
add esp, 0xc
jmp 0x408e82
xor esi, esi
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x68]
push dword [ebp - 0x34]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], 8
movsx ecx, dx
cmovae eax, dword [ebp - 0x68]
push ecx
push eax
push 0xffffffffffffffff
push edi
push esi
call fcn.00408a30
lea eax, [edi - 1]
mov dword [ebp - 0x40], 0
lea eax, [esi + eax*2]
mov dword [ebp - 0x3c], 7
xor ecx, ecx
add esp, 0x1c
mov word [ebp - 0x50], cx
cmp esi, eax
je 0x408eda
sub eax, esi
lea ecx, [ebp - 0x50]
sar eax, 1
push eax
push esi
call fcn.00402cf0
mov byte [ebp - 4], 0
test esi, esi
je 0x408eeb
push esi
call fcn.0041aafc
add esp, 4
mov ebx, dword [ebp - 0x38]
lea esi, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
push 3
cmovae esi, dword [ebp - 0x50]
mov edi, dword [ebx + 8]
call fcn.00410fc0
mov edx, eax
cmp edi, 0xf
je 0x408f15
push edi
call fcn.00410fc0
shl eax, 4
jmp 0x408f18
mov eax, dword [ebx + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or edx, eax
push edx
push dword [ebx + 4]
call edi
push esi
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.00401b40
movzx eax, word [ebx + 0x10]
add esp, 8
push eax
push dword [ebx + 4]
call edi
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x408f7e
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408f74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409031
push edx
push ecx
call fcn.0041aec9
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp edx, 8
jb 0x408fcf
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408fc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409031
push edx
push ecx
call fcn.0041aec9
add esp, 8
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
movsx eax, cx
cmp eax, edx
jle 0x408dc7
push esi
call fcn.0041aafc
push ebx
call fcn.0041aafc
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
push str.Error_during_formatting.
lea ecx, [ebp - 0x74]
call fcn.004041c0
push 0x44df64
lea eax, [ebp - 0x74]
push eax
call fcn.0041c4eb
call fcn.00422e9e
int3