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

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x24]
xor eax, eax
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 4], eax
test edi, edi
jne 0x4e30dd
mov eax, str.NULL
jmp 0x4e30f6
mov al, byte [edi + 0x61]
cmp al, 0x76
je 0x4e312b
cmp al, 0xba
je 0x4e30f1
cmp al, 0x6d
mov eax, str.invalid
jne 0x4e30f6
mov eax, str.unopened
push eax
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.004d4a30
push 0x6214bc
push 0x21077
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.004d4a30
add esp, 0x20
mov eax, 0x15
pop edi
add esp, 0x1c
ret
mov eax, dword [edi + 0xc]
test ecx, ecx
push esi
mov esi, section..rdata
cmovne esi, ecx
test eax, eax
je 0x4e3147
push eax
call dword [0x645f88]
add esp, 4
cmp dword [edi + 0x124], 0
mov dword [edi + 0x40], 0
je 0x4e3164
push 0
push edi
call fcn.0054d250
add esp, 8
jmp 0x4e316b
mov dword [edi + 0x44], 0xffffffff
push ebx
push ebp
nop dword [eax]
cmp byte [esi], 0
je 0x4e351a
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], ebx
push eax
push ebx
push pe_nt_image_headers32
push 0xffffffffffffffff
push esi
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
call fcn.00565ce0
mov edi, dword [esp + 0x3c]
add esp, 0x1c
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4e34e1
test edi, edi
jne 0x4e31c1
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
jmp 0x4e3170
xor ebp, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebp
nop dword [eax + eax]
push edi
call fcn.004cadc0
add esp, 4
mov esi, eax
cmp dword [esp + 0x38], 0
mov dword [esp + 0x10], esi
je 0x4e3430
cmp esi, 0x64
je 0x4e321a
cmp esi, 0x65
jne 0x4e3439
cmp dword [esp + 0x18], 0
jne 0x4e3439
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x20]
and eax, 0x100
or eax, 0
je 0x4e3439
jmp 0x4e3221
cmp dword [esp + 0x18], 0
jne 0x4e3282
movzx ebx, word [edi + 0x90]
push 0
mov dword [esp + 0x20], ebx
lea eax, [ebx*8 + 4]
push eax
push dword [esp + 0x38]
call fcn.0054aba0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x4e34e7
xor esi, esi
test ebx, ebx
je 0x4e3269
push 0
push 0
push esi
push edi
call fcn.004f2b20
mov dword [ebp + esi*4], eax
add esp, 0x10
inc esi
cmp esi, ebx
jl 0x4e3252
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], 1
cmp esi, 0x64
jne 0x4e3416
lea ecx, [ebx*4]
add ecx, ebp
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ebx, ebx
jle 0x4e3405
xor ebx, ebx
mov dword [esp + 0x24], ebx
nop
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e32b3
push eax
call dword [0x645f88]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x4e32d1
movzx eax, word [edi + 0x90]
cmp ebp, eax
jge 0x4e32d1
test ebp, ebp
js 0x4e32d1
add ecx, ebx
jne 0x4e32ea
xor esi, esi
jmp 0x4e331d
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.0054d250
add esp, 8
mov ecx, 0x6170f8
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x4e3307
cmp byte [ecx + 0x12], 1
jne 0x4e3307
mov esi, dword [ecx + 8]
jmp 0x4e331d
test dl, 1
je 0x4e3310
xor esi, esi
jmp 0x4e331d
push 1
push ecx
call fcn.0059d6f0
add esp, 8
mov esi, eax
mov ecx, dword [edi]
mov eax, dword [edi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x4e332c
test eax, eax
je 0x4e3336
push eax
push ecx
call fcn.004e9c40
add esp, 8
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e334c
push eax
call dword [0x645f90]
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [ecx + ebp*4], esi
test esi, esi
jne 0x4e33ef
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e336e
push eax
call dword [0x645f88]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x4e3389
movzx eax, word [edi + 0x90]
cmp ebp, eax
jge 0x4e3389
test ebp, ebp
js 0x4e3389
lea eax, [ecx + ebx]
jmp 0x4e33a2
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.0054d250
add esp, 8
mov eax, 0x6170f8
movzx eax, word [eax + 0x10]
mov ecx, dword [edi]
and eax, 0x3f
cmp byte [ecx + 0x57], 0
mov bl, byte [eax + 0x617000]
mov eax, dword [edi + 0x24]
jne 0x4e33be
test eax, eax
je 0x4e33c8
push eax
push ecx
call fcn.004e9c40
add esp, 8
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e33de
push eax
call dword [0x645f90]
add esp, 4
cmp bl, 5
jne 0x4e349e
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
inc ebp
add ebx, 0x28
mov dword [esp + 0x24], ebx
cmp ebp, dword [esp + 0x1c]
jl 0x4e32a0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov dword [ecx + ebp*4], 0
mov ebp, dword [esp + 0x20]
jmp 0x4e341a
mov ecx, dword [esp + 0x14]
push ebp
push ecx
push ebx
push dword [esp + 0x48]
call dword [esp + 0x48]
add esp, 0x10
test eax, eax
jne 0x4e34b0
cmp esi, 0x64
je 0x4e31d0
xor ebx, ebx
cmp byte [edi + 0x97], 1
mov dword [esp + 0x10], ebx
jb 0x4e3457
push edi
call fcn.0058c3d0
add esp, 4
mov dword [esp + 0x10], eax
mov ebx, eax
push edi
call fcn.0057f700
mov esi, dword [esp + 0x2c]
add esp, 4
xor edi, edi
movzx eax, byte [esi]
test byte [eax + 0x612dc0], 1
je 0x4e3480
movzx eax, byte [esi + 1]
inc esi
test byte [eax + 0x612dc0], 1
jne 0x4e3472
test ebp, ebp
je 0x4e3491
push ebp
push dword [esp + 0x34]
call fcn.0054aa60
add esp, 8
test ebx, ebx
jne 0x4e34e1
mov edi, dword [esp + 0x30]
jmp 0x4e3170
push dword [esp + 0x30]
call fcn.00567010
mov ebp, dword [esp + 0x24]
add esp, 4
jmp 0x4e34e3
cmp byte [edi + 0x97], 1
mov esi, 4
jb 0x4e34c7
push edi
call fcn.0058c3d0
add esp, 4
push edi
call fcn.0057f700
mov edi, dword [esp + 0x34]
push 4
push edi
mov dword [edi + 0x40], esi
call fcn.0054d250
add esp, 0xc
jmp 0x4e350a
xor ebp, ebp
mov esi, dword [esp + 0x10]
test edi, edi
je 0x4e3506
cmp byte [edi + 0x97], 1
jb 0x4e34fd
push edi
call fcn.0058c3d0
add esp, 4
push edi
call fcn.0057f700
add esp, 4
mov edi, dword [esp + 0x30]
test ebp, ebp
je 0x4e351e
push ebp
push edi
call fcn.0054aa60
add esp, 8
jmp 0x4e351e
mov esi, dword [esp + 0x10]
cmp byte [edi + 0x57], 0
jne 0x4e3551
test esi, esi
jne 0x4e3551
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4e3536
mov dword [eax], 0
mov eax, dword [edi + 0xc]
pop ebp
pop ebx
test eax, eax
je 0x4e3549
push eax
call dword [0x645f90]
add esp, 4
mov eax, esi
pop esi
pop edi
add esp, 0x1c
ret
push esi
push edi
call fcn.004e9c40
mov esi, eax
add esp, 8
test esi, esi
je 0x4e3528
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x4e3536
push edi
call fcn.004e61f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4e357d
mov dword [ebp], eax
jmp 0x4e35bc
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e3582
sub ecx, edx
push 0
lea ebp, [ecx + 1]
push ebp
call fcn.005660f0
mov edi, eax
add esp, 8
test edi, edi
je 0x4e35aa
push ebp
push ebx
push edi
call fcn.00430da0
add esp, 0xc
mov eax, dword [esp + 0x40]
test edi, edi
mov dword [eax], edi
mov edi, dword [esp + 0x30]
jne 0x4e3536
mov esi, 7
push esi
push edi
mov dword [edi + 0x40], esi
call fcn.0054d250
add esp, 8
jmp 0x4e3536