Function at 0x4d46f0
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 0x4d470d
mov eax, str.NULL
jmp 0x4d4726
mov al, byte [edi + 0x61]
cmp al, 0x76
je 0x4d475b
cmp al, 0xba
je 0x4d4721
cmp al, 0x6d
mov eax, str.invalid
jne 0x4d4726
mov eax, str.unopened
push eax
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.004c6060
push 0x6128ec
push 0x21077
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.004c6060
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 0x4d4777
push eax
call dword [0x635d70]
add esp, 4
cmp dword [edi + 0x124], 0
mov dword [edi + 0x40], 0
je 0x4d4794
push 0
push edi
call fcn.0053e880
add esp, 8
jmp 0x4d479b
mov dword [edi + 0x44], 0xffffffff
push ebx
push ebp
nop dword [eax]
cmp byte [esi], 0
je 0x4d4b4a
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.00557310
mov edi, dword [esp + 0x3c]
add esp, 0x1c
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d4b11
test edi, edi
jne 0x4d47f1
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
jmp 0x4d47a0
xor ebp, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebp
nop dword [eax + eax]
push edi
call fcn.004bc3f0
add esp, 4
mov esi, eax
cmp dword [esp + 0x38], 0
mov dword [esp + 0x10], esi
je 0x4d4a60
cmp esi, 0x64
je 0x4d484a
cmp esi, 0x65
jne 0x4d4a69
cmp dword [esp + 0x18], 0
jne 0x4d4a69
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x20]
and eax, 0x100
or eax, 0
je 0x4d4a69
jmp 0x4d4851
cmp dword [esp + 0x18], 0
jne 0x4d48b2
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.0053c1d0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x4d4b17
xor esi, esi
test ebx, ebx
je 0x4d4899
push 0
push 0
push esi
push edi
call fcn.004e4150
mov dword [ebp + esi*4], eax
add esp, 0x10
inc esi
cmp esi, ebx
jl 0x4d4882
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], 1
cmp esi, 0x64
jne 0x4d4a46
lea ecx, [ebx*4]
add ecx, ebp
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ebx, ebx
jle 0x4d4a35
xor ebx, ebx
mov dword [esp + 0x24], ebx
nop
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4d48e3
push eax
call dword [0x635d70]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x4d4901
movzx eax, word [edi + 0x90]
cmp ebp, eax
jge 0x4d4901
test ebp, ebp
js 0x4d4901
add ecx, ebx
jne 0x4d491a
xor esi, esi
jmp 0x4d494d
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.0053e880
add esp, 8
mov ecx, 0x608528
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x4d4937
cmp byte [ecx + 0x12], 1
jne 0x4d4937
mov esi, dword [ecx + 8]
jmp 0x4d494d
test dl, 1
je 0x4d4940
xor esi, esi
jmp 0x4d494d
push 1
push ecx
call fcn.0058ed20
add esp, 8
mov esi, eax
mov ecx, dword [edi]
mov eax, dword [edi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x4d495c
test eax, eax
je 0x4d4966
push eax
push ecx
call fcn.004db270
add esp, 8
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4d497c
push eax
call dword [0x635d78]
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [ecx + ebp*4], esi
test esi, esi
jne 0x4d4a1f
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4d499e
push eax
call dword [0x635d70]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x4d49b9
movzx eax, word [edi + 0x90]
cmp ebp, eax
jge 0x4d49b9
test ebp, ebp
js 0x4d49b9
lea eax, [ecx + ebx]
jmp 0x4d49d2
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.0053e880
add esp, 8
mov eax, 0x608528
movzx eax, word [eax + 0x10]
mov ecx, dword [edi]
and eax, 0x3f
cmp byte [ecx + 0x57], 0
mov bl, byte [eax + 0x608430]
mov eax, dword [edi + 0x24]
jne 0x4d49ee
test eax, eax
je 0x4d49f8
push eax
push ecx
call fcn.004db270
add esp, 8
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4d4a0e
push eax
call dword [0x635d78]
add esp, 4
cmp bl, 5
jne 0x4d4ace
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 0x4d48d0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov dword [ecx + ebp*4], 0
mov ebp, dword [esp + 0x20]
jmp 0x4d4a4a
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 0x4d4ae0
cmp esi, 0x64
je 0x4d4800
xor ebx, ebx
cmp byte [edi + 0x97], 1
mov dword [esp + 0x10], ebx
jb 0x4d4a87
push edi
call fcn.0057da00
add esp, 4
mov dword [esp + 0x10], eax
mov ebx, eax
push edi
call fcn.00570d30
mov esi, dword [esp + 0x2c]
add esp, 4
xor edi, edi
movzx eax, byte [esi]
test byte [eax + 0x6041f0], 1
je 0x4d4ab0
movzx eax, byte [esi + 1]
inc esi
test byte [eax + 0x6041f0], 1
jne 0x4d4aa2
test ebp, ebp
je 0x4d4ac1
push ebp
push dword [esp + 0x34]
call fcn.0053c090
add esp, 8
test ebx, ebx
jne 0x4d4b11
mov edi, dword [esp + 0x30]
jmp 0x4d47a0
push dword [esp + 0x30]
call fcn.00558640
mov ebp, dword [esp + 0x24]
add esp, 4
jmp 0x4d4b13
cmp byte [edi + 0x97], 1
mov esi, 4
jb 0x4d4af7
push edi
call fcn.0057da00
add esp, 4
push edi
call fcn.00570d30
mov edi, dword [esp + 0x34]
push 4
push edi
mov dword [edi + 0x40], esi
call fcn.0053e880
add esp, 0xc
jmp 0x4d4b3a
xor ebp, ebp
mov esi, dword [esp + 0x10]
test edi, edi
je 0x4d4b36
cmp byte [edi + 0x97], 1
jb 0x4d4b2d
push edi
call fcn.0057da00
add esp, 4
push edi
call fcn.00570d30
add esp, 4
mov edi, dword [esp + 0x30]
test ebp, ebp
je 0x4d4b4e
push ebp
push edi
call fcn.0053c090
add esp, 8
jmp 0x4d4b4e
mov esi, dword [esp + 0x10]
cmp byte [edi + 0x57], 0
jne 0x4d4b81
test esi, esi
jne 0x4d4b81
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4d4b66
mov dword [eax], 0
mov eax, dword [edi + 0xc]
pop ebp
pop ebx
test eax, eax
je 0x4d4b79
push eax
call dword [0x635d78]
add esp, 4
mov eax, esi
pop esi
pop edi
add esp, 0x1c
ret
push esi
push edi
call fcn.004db270
mov esi, eax
add esp, 8
test esi, esi
je 0x4d4b58
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x4d4b66
push edi
call fcn.004d7820
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4d4bad
mov dword [ebp], eax
jmp 0x4d4bec
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d4bb2
sub ecx, edx
push 0
lea ebp, [ecx + 1]
push ebp
call fcn.00557720
mov edi, eax
add esp, 8
test edi, edi
je 0x4d4bda
push ebp
push ebx
push edi
call fcn.00427770
add esp, 0xc
mov eax, dword [esp + 0x40]
test edi, edi
mov dword [eax], edi
mov edi, dword [esp + 0x30]
jne 0x4d4b66
mov esi, 7
push esi
push edi
mov dword [edi + 0x40], esi
call fcn.0053e880
add esp, 8
jmp 0x4d4b66