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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1c
push ebx
push ebp
xor ebp, ebp
test ecx, ecx
jne 0x413f56
mov eax, str.NULL
jmp 0x413f78
mov eax, dword [ecx + 0x64]
cmp eax, 0xa029a697
je 0x413fae
cmp eax, 0x4b771290
je 0x413f73
cmp eax, 0xf03b7906
mov eax, str.invalid
jne 0x413f78
mov eax, str.unopened
push eax
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.00420250
push 0x4d6684
push 0x1e955
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.00420250
add esp, 0x20
mov eax, 0x15
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x2c]
test eax, eax
push esi
mov esi, 0x4c93ac
cmovne esi, eax
mov eax, dword [ecx + 0xc]
push edi
test eax, eax
je 0x413fd3
push eax
call dword [0x4e6058]
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ecx + 0x40], ebp
cmp dword [ecx + 0x110], ebp
je 0x413ff0
push 0
push ecx
call fcn.00457c50
add esp, 8
mov ecx, dword [esp + 0x30]
lea ecx, [ecx]
cmp byte [esi], 0
je 0x414586
lea eax, [esp + 0x28]
xor ebp, ebp
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], ebp
push eax
push ebp
push 0x80
push 0xffffffffffffffff
push esi
push ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
call fcn.00466b50
mov edi, dword [esp + 0x3c]
add esp, 0x1c
mov dword [esp + 0x14], eax
test eax, eax
jne 0x414399
test edi, edi
jne 0x41403f
mov esi, dword [esp + 0x28]
mov ebp, eax
jmp 0x413fe9
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
jmp 0x414050
push edi
call fcn.004174a0
add esp, 4
mov dword [esp + 0x14], eax
cmp dword [esp + 0x38], 0
je 0x4142a4
cmp eax, 0x64
je 0x414094
cmp eax, 0x65
jne 0x4142ad
test esi, esi
jne 0x4142ad
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x20]
and eax, 0x100
or eax, esi
je 0x4142ad
jmp 0x414098
test esi, esi
jne 0x4140fa
movzx ebp, word [edi + 0x90]
push 0
mov dword [esp + 0x20], ebp
lea eax, [ebp*8 + 4]
push eax
push dword [esp + 0x38]
call fcn.00455fb0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x41439b
xor esi, esi
test ebp, ebp
je 0x4140e6
lea ecx, [ecx]
push 0
push 0
push esi
push edi
call fcn.0042a3f0
mov dword [ebx + esi*4], eax
add esp, 0x10
inc esi
cmp esi, ebp
jl 0x4140d0
cmp dword [esp + 0x14], 0x64
mov esi, 1
mov dword [esp + 0x24], esi
jne 0x414286
lea ecx, [ebx + ebp*4]
xor ebx, ebx
mov dword [esp + 0x18], ecx
test ebp, ebp
jle 0x414275
xor ebp, ebp
lea ecx, [ecx]
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x414123
push eax
call dword [0x4e6058]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x414141
movzx eax, word [edi + 0x90]
cmp ebx, eax
jge 0x414141
test ebx, ebx
js 0x414141
add ecx, ebp
jne 0x41415a
xor esi, esi
jmp 0x41418d
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.00457c50
add esp, 8
mov ecx, 0x4cf450
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x414177
cmp byte [ecx + 0xa], 1
jne 0x414177
mov esi, dword [ecx + 0x10]
jmp 0x41418d
test dl, 1
je 0x414180
xor esi, esi
jmp 0x41418d
push 1
push ecx
call fcn.00494ad0
add esp, 8
mov esi, eax
mov eax, dword [edi]
mov ecx, dword [edi + 0x28]
cmp byte [eax + 0x53], 0
jne 0x41419c
test ecx, ecx
je 0x4141aa
push ecx
push eax
call fcn.00423210
mov ecx, eax
add esp, 8
mov eax, dword [edi]
mov dword [edi + 0x28], ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4141be
push eax
call dword [0x4e6060]
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [ecx + ebx*4], esi
test esi, esi
jne 0x414263
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4141e0
push eax
call dword [0x4e6058]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x4141fb
movzx eax, word [edi + 0x90]
cmp ebx, eax
jge 0x4141fb
test ebx, ebx
js 0x4141fb
lea eax, [ecx + ebp]
jmp 0x414214
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.00457c50
add esp, 8
mov eax, 0x4cf450
movzx eax, word [eax + 8]
mov ecx, dword [edi]
and eax, 0x3f
cmp byte [ecx + 0x53], 0
mov al, byte [eax + 0x4cf3f0]
mov byte [esp + 0x13], al
mov eax, dword [edi + 0x28]
jne 0x414234
test eax, eax
je 0x414240
push eax
push ecx
call fcn.00423210
mov ecx, dword [edi]
add esp, 8
mov dword [edi + 0x28], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x414254
push eax
call dword [0x4e6060]
add esp, 4
cmp byte [esp + 0x13], 5
jne 0x4143d8
mov ecx, dword [esp + 0x18]
inc ebx
add ebp, 0x28
cmp ebx, dword [esp + 0x1c]
jl 0x414110
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov dword [ecx + ebx*4], 0
mov ebx, dword [esp + 0x20]
jmp 0x41428a
mov ecx, dword [esp + 0x18]
push ebx
push ecx
push ebp
push dword [esp + 0x48]
call dword [esp + 0x48]
add esp, 0x10
test eax, eax
jne 0x4143ea
mov eax, dword [esp + 0x14]
cmp eax, 0x64
je 0x414050
push edi
call fcn.00483a30
mov esi, dword [esp + 0x2c]
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
xor edi, edi
movzx eax, byte [esi]
test byte [eax + 0x4cf218], 1
je 0x4142de
mov edi, edi
movzx eax, byte [esi + 1]
inc esi
test byte [eax + 0x4cf218], 1
jne 0x4142d0
mov ecx, dword [esp + 0x30]
test ebx, ebx
je 0x414391
cmp dword [ecx + 0x200], edi
je 0x414301
push ebx
push ecx
call fcn.0043b030
add esp, 8
jmp 0x41438d
cmp ebx, dword [ecx + 0x154]
jae 0x414339
cmp ebx, dword [ecx + 0x14c]
jb 0x414321
mov eax, dword [ecx + 0x148]
mov dword [ebx], eax
mov dword [ecx + 0x148], ebx
jmp 0x414391
cmp ebx, dword [ecx + 0x150]
jb 0x414339
mov eax, dword [ecx + 0x140]
mov dword [ebx], eax
mov dword [ecx + 0x140], ebx
jmp 0x414391
cmp dword [0x4e6008], edi
je 0x414383
mov eax, dword [0x4e86d8]
test eax, eax
je 0x414354
push eax
call dword [0x4e6058]
add esp, 4
push ebx
call dword [0x4e6034]
sub dword [0x4e8678], eax
dec dword [0x4e869c]
push ebx
call dword [0x4e602c]
mov eax, dword [0x4e86d8]
add esp, 8
test eax, eax
je 0x41438d
push eax
call dword [0x4e6060]
jmp 0x41438a
push ebx
call dword [0x4e602c]
add esp, 4
mov ecx, dword [esp + 0x30]
test ebp, ebp
je 0x413ff0
xor ebx, ebx
test edi, edi
je 0x4144d1
mov eax, dword [edi + 0x14]
cmp eax, 0x2df20da3
je 0x4143b4
cmp eax, 0x319c2973
jne 0x4143bd
push edi
call fcn.00486710
add esp, 4
mov esi, dword [edi]
push edi
push esi
call fcn.0047a800
mov ecx, dword [edi + 4]
add esp, 8
mov eax, dword [edi + 8]
test ecx, ecx
je 0x41440b
mov dword [ecx + 8], eax
jmp 0x41440e
push dword [esp + 0x30]
call fcn.00467780
mov ebx, dword [esp + 0x24]
add esp, 4
jmp 0x41439b
push edi
mov ebp, 4
call fcn.00483a30
mov esi, dword [esp + 0x34]
push ebp
push esi
mov dword [esi + 0x40], ebp
call fcn.00457c50
add esp, 0xc
jmp 0x4144d9
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x41441b
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov dword [edi + 0x14], 0x5606c3c8
mov dword [edi], 0
test esi, esi
je 0x41447c
cmp dword [esi + 0x200], 0
je 0x414444
push edi
push esi
call fcn.0043b030
add esp, 8
jmp 0x4144d1
cmp edi, dword [esi + 0x154]
jae 0x41447c
cmp edi, dword [esi + 0x14c]
jb 0x414464
mov eax, dword [esi + 0x148]
mov dword [edi], eax
mov dword [esi + 0x148], edi
jmp 0x4144d1
cmp edi, dword [esi + 0x150]
jb 0x41447c
mov eax, dword [esi + 0x140]
mov dword [edi], eax
mov dword [esi + 0x140], edi
jmp 0x4144d1
cmp dword [0x4e6008], 0
je 0x4144c7
mov eax, dword [0x4e86d8]
test eax, eax
je 0x414498
push eax
call dword [0x4e6058]
add esp, 4
push edi
call dword [0x4e6034]
sub dword [0x4e8678], eax
dec dword [0x4e869c]
push edi
call dword [0x4e602c]
mov eax, dword [0x4e86d8]
add esp, 8
test eax, eax
je 0x4144d1
push eax
call dword [0x4e6060]
jmp 0x4144ce
push edi
call dword [0x4e602c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
test ebx, ebx
je 0x414586
cmp dword [esi + 0x200], 0
je 0x4144f9
push ebx
push esi
call fcn.0043b030
add esp, 8
jmp 0x414586
cmp ebx, dword [esi + 0x154]
jae 0x414531
cmp ebx, dword [esi + 0x14c]
jb 0x414519
mov eax, dword [esi + 0x148]
mov dword [ebx], eax
mov dword [esi + 0x148], ebx
jmp 0x414586
cmp ebx, dword [esi + 0x150]
jb 0x414531
mov eax, dword [esi + 0x140]
mov dword [ebx], eax
mov dword [esi + 0x140], ebx
jmp 0x414586
cmp dword [0x4e6008], 0
je 0x41457c
mov eax, dword [0x4e86d8]
test eax, eax
je 0x41454d
push eax
call dword [0x4e6058]
add esp, 4
push ebx
call dword [0x4e6034]
sub dword [0x4e8678], eax
dec dword [0x4e869c]
push ebx
call dword [0x4e602c]
mov eax, dword [0x4e86d8]
add esp, 8
test eax, eax
je 0x414586
push eax
call dword [0x4e6060]
jmp 0x414583
push ebx
call dword [0x4e602c]
add esp, 4
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x53], 0
jne 0x414598
test ebp, ebp
jne 0x414598
xor edi, edi
jmp 0x4145a8
push ebp
push eax
call fcn.00423210
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x41461e
test edi, edi
je 0x414618
push eax
call fcn.00416650
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4145e3
xor esi, esi
mov eax, dword [esp + 0x40]
mov edi, 7
push edi
mov dword [eax], esi
mov eax, dword [esp + 0x34]
push eax
mov dword [eax + 0x40], edi
call fcn.00457c50
add esp, 8
jmp 0x41461e
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4145e8
sub ecx, edx
push 0
lea ebp, [ecx + 1]
push ebp
call fcn.00466e30
mov esi, eax
add esp, 8
test esi, esi
je 0x4145c5
push ebp
push ebx
push esi
call fcn.004ac060
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov dword [eax], esi
jmp 0x41461e
mov dword [ebx], 0
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x414633
push eax
call dword [0x4e6060]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret