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

Disassembly:
sub esp, 0x14
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], 0
call fcn.005ea7a0
test eax, eax
jne 0x58ee3c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
cmp byte [0x6d4c3c], al
jne 0x58e61b
xor ebx, ebx
jmp 0x58e63b
test edi, 0x8000
je 0x58e627
xor ebx, ebx
jmp 0x58e63b
mov ebx, 1
test edi, 0x10000
jne 0x58e63b
movzx ebx, byte [0x6d4c3d]
test edi, 0x40000
je 0x58e64b
and edi, 0xfffdffff
jmp 0x58e65a
cmp dword [0x6d4d00], 0
je 0x58e65a
or edi, 0x20000
push 0
and edi, 0xfff600e7
push 0x230
mov dword [esp + 0x38], edi
call fcn.005bcc80
mov esi, eax
add esp, 8
test esi, esi
je 0x58ed86
push 0x230
push 0
push esi
call fcn.00621d30
add esp, 0xc
mov ebp, esi
test ebx, ebx
je 0x58e6db
cmp byte [0x6d4c3c], 0
jne 0x58e6b6
push esi
mov dword [esi + 0xc], 0
call fcn.00564ca0
add esp, 4
xor ebx, ebx
lea edi, [ebx + 7]
jmp 0x58ed93
push 1
call dword [0x6d4c80]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
jne 0x58e6db
push esi
call fcn.00564ca0
add esp, 4
xor ebx, ebx
lea edi, [ebx + 7]
jmp 0x58ed93
mov eax, dword [esi + 0xc]
test eax, eax
je 0x58e6ec
push eax
call dword [0x6d4c88]
add esp, 4
mov eax, edi
mov dword [esi + 0x14], 2
and eax, 0x2000000
mov byte [esi + 0x61], 0x6d
neg eax
mov dword [esi + 0x130], 1
push 0
sbb eax, eax
and eax, 0xffffff00
add eax, 0xff
mov dword [esi + 0x48], eax
lea eax, [esi + 0x1cc]
mov dword [esi + 0x10], eax
xor eax, eax
mov word [esi + 0x134], ax
movups xmm0, xmmword [0x68afa0]
push fcn.0056c8e0
push 0
movups xmmword [esi + 0x78], xmm0
push 1
movups xmm0, xmmword [0x68afb0]
push str.BINARY
push esi
movups xmmword [esi + 0x88], xmm0
movups xmm0, xmmword [0x68afc0]
mov byte [esi + 0x55], 1
mov byte [esi + 0x5a], 0xff
movups xmmword [esi + 0x98], xmm0
mov dword [esi + 0xa4], eax
mov eax, dword [0x6d4ce0]
mov ecx, dword [0x6d4ce4]
or dword [esi + 0x20], 0xe00480e0
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x64], 0
mov dword [esi + 0xb8], 0x6d4e2c
mov dword [esi + 0x24], eax
mov dword [esi + 0x1b8], 0
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1b0], 0
mov dword [esi + 0x1bc], 0
mov dword [esi + 0x18c], 0
mov dword [esi + 0x188], 0
mov dword [esi + 0x184], 0
mov dword [esi + 0x190], 0
call fcn.005750a0
push 0
push fcn.0056c8e0
push 0
push 3
push str.BINARY
push esi
call fcn.005750a0
push 0
push fcn.0056c8e0
push 0
push 2
push str.BINARY
push esi
call fcn.005750a0
add esp, 0x48
push 0
push 0x58e450
push 0
push 1
push str.NOCASE
push esi
call fcn.005750a0
push 0
push 0x59a310
push 0
push 1
push str.RTRIM
push esi
call fcn.005750a0
add esp, 0x30
mov ebx, esi
cmp byte [esi + 0x57], 0
jne 0x58ed08
mov ecx, edi
mov dword [esi + 0x3c], edi
and ecx, 7
mov eax, 1
shl eax, cl
test al, 0x46
jne 0x58e883
push 0x2cbd0
call fcn.005bd310
add esp, 4
xor ecx, ecx
jmp 0x58e8af
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x38]
push dword [esp + 0x48]
call fcn.005bfba0
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
test eax, eax
je 0x58e950
cmp eax, 7
jne 0x58e8c9
push esi
call fcn.005bd9c0
add esp, 4
mov ebx, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
mov eax, 0x679638
push ebx
cmove eax, ecx
push eax
push dword [esp + 0x20]
push esi
call fcn.005abe00
add esp, 0x10
test ebx, ebx
je 0x58e949
cmp dword [0x6d4c38], 0
je 0x58e93f
mov eax, dword [0x6ecdc0]
test eax, eax
je 0x58e908
push eax
call dword [0x6d4c88]
add esp, 4
push ebx
call dword [0x6d4c64]
sub dword [0x6ecd58], eax
dec dword [0x6ecd7c]
push ebx
call dword [0x6d4c5c]
mov eax, dword [0x6ecdc0]
add esp, 8
test eax, eax
je 0x58e949
push eax
call dword [0x6d4c90]
add esp, 4
mov ebx, esi
jmp 0x58ed08
push ebx
call dword [0x6d4c5c]
add esp, 4
mov ebx, esi
jmp 0x58ed08
mov eax, dword [esi + 0x10]
or edi, 0x100
push edi
push 0
add eax, 4
push eax
push esi
push ecx
push dword [esi]
call fcn.005a3ab0
add esp, 0x18
test eax, eax
je 0x58e98c
cmp eax, 0xc0a
mov ecx, 7
cmove eax, ecx
push eax
push esi
call fcn.005abcd0
add esp, 8
jmp 0x58ed08
mov eax, dword [esi + 0x10]
push dword [eax + 4]
call fcn.005a2880
mov eax, dword [esi + 0x10]
push dword [eax + 4]
push esi
call fcn.005c8c40
mov ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [ecx + 0xc], eax
cmp byte [esi + 0x57], 0
jne 0x58e9c6
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
movzx eax, byte [eax + 0x4d]
push eax
push esi
call fcn.005cc610
add esp, 8
mov eax, dword [esi + 0x10]
push dword [eax + 4]
call fcn.005a39f0
push 0
push esi
call fcn.005c8c40
mov ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [eax], str.main
mov eax, dword [esi + 0x10]
mov byte [eax + 8], 3
mov eax, dword [esi + 0x10]
mov dword [eax + 0x10], str.temp
mov eax, dword [esi + 0x10]
mov byte [eax + 0x18], 1
cmp byte [esi + 0x57], 0
mov byte [esi + 0x61], 0x76
jne 0x58ed08
cmp dword [esi + 0x124], 0
mov dword [esi + 0x40], 0
je 0x58ea2e
push 0
push esi
call fcn.005abd00
add esp, 8
jmp 0x58ea35
mov dword [esi + 0x44], 0xffffffff
mov eax, dword [esi + 0xc]
test eax, eax
je 0x58ea46
push eax
call dword [0x6d4c88]
add esp, 4
push 0
push 1
push 2
push str.MATCH
push esi
call fcn.005b1a60
mov ecx, dword [esi + 0xc]
add esp, 0x14
mov edi, eax
test ecx, ecx
je 0x58ea6d
push ecx
call dword [0x6d4c90]
add esp, 4
test edi, edi
jne 0x58eab6
push str.MATCH
push 0x679638
call fcn.00564970
add esp, 8
test eax, eax
je 0x58eaad
push fcn.00564ca0
push edi
push edi
push edi
push edi
push 0x5bb540
push eax
push 1
push 2
push str.MATCH
push esi
call fcn.00575230
add esp, 0x2c
cmp eax, 7
jne 0x58eab6
push esi
call fcn.005bd9c0
add esp, 4
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x58eafe
cmp al, 0x76
je 0x58eafe
cmp al, 0x6d
je 0x58eafe
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.00553fa0
push 0x69379c
push 0x2c8f7
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.00553fa0
add esp, 0x20
mov eax, 0x15
jmp 0x58ecb1
cmp byte [esi + 0x57], 0
jne 0x58ecaa
mov eax, dword [esi + 0x48]
mov ecx, ebx
and eax, dword [esi + 0x40]
jne 0x58ecb1
mov edi, 0x68ad98
nop dword [eax + eax]
mov ecx, ebp
mov edx, ebx
cmp edi, 0x68ada0
jge 0x58eb40
mov eax, dword [edi]
push esi
call eax
add esp, 4
add edi, 4
test eax, eax
je 0x58eb20
jmp 0x58ecb1
cmp dword [0x6ecfa4], 0
mov dword [esp + 0x14], 1
je 0x58ec52
xor ebx, ebx
cmp byte [0x6d4c3c], 0
jne 0x58eb64
xor edi, edi
jmp 0x58eb7f
push 2
call dword [0x6d4c80]
mov edi, eax
add esp, 4
test edi, edi
je 0x58eb7f
push edi
call dword [0x6d4c88]
add esp, 4
cmp ebx, dword [0x6ecfa4]
jb 0x58eb91
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x58eb99
mov eax, dword [0x6ecfa8]
mov ebp, dword [eax + ebx*4]
test edi, edi
je 0x58eba7
push edi
call dword [0x6d4c90]
add esp, 4
xor edi, edi
mov dword [esp + 0x10], edi
test ebp, ebp
je 0x58ebe8
push 0x68b8b0
lea eax, [esp + 0x14]
push eax
push esi
call ebp
add esp, 0xc
test eax, eax
je 0x58ebe4
push dword [esp + 0x10]
push str.automatic_extension_loading_failed:__s
push eax
push esi
call fcn.005abe00
mov edi, dword [esp + 0x20]
add esp, 0x10
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x58ebec
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x58ec45
cmp dword [0x6d4c38], 0
je 0x58ec3b
mov eax, dword [0x6ecdc0]
test eax, eax
je 0x58ec0c
push eax
call dword [0x6d4c88]
add esp, 4
push edi
call dword [0x6d4c64]
sub dword [0x6ecd58], eax
dec dword [0x6ecd7c]
push edi
call dword [0x6d4c5c]
mov eax, dword [0x6ecdc0]
add esp, 8
test eax, eax
je 0x58ec45
push eax
call dword [0x6d4c90]
jmp 0x58ec42
push edi
call dword [0x6d4c5c]
add esp, 4
inc ebx
test ebp, ebp
jne 0x58eb57
mov ebx, esi
mov ebp, ebx
mov al, byte [esi + 0x61]
mov ecx, ebp
mov edx, ebx
cmp al, 0xba
je 0x58ec96
cmp al, 0x76
je 0x58ec96
cmp al, 0x6d
je 0x58ec96
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.00553fa0
push 0x69379c
push 0x2c8f7
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.00553fa0
add esp, 0x20
jmp 0x58ed08
cmp byte [esi + 0x57], 0
mov ebx, edx
mov ebp, ecx
jne 0x58ed08
mov eax, dword [esi + 0x48]
and eax, dword [esi + 0x40]
jne 0x58ed08
jmp 0x58ecbb
mov eax, 7
mov ebp, ebx
push eax
push esi
call fcn.005abcd0
add esp, 8
push dword [0x6d4c50]
push dword [0x6d4c4c]
push 0
push esi
call fcn.0059cb10
mov eax, dword [esi + 0xc]
add esp, 0x10
test eax, eax
je 0x58ece3
push eax
call dword [0x6d4c88]
add esp, 4
mov eax, dword [esi + 0xc]
mov dword [esi + 0x110], 0x5e1280
mov dword [esi + 0x114], 0x3e8
test eax, eax
je 0x58ed08
push eax
call dword [0x6d4c90]
add esp, 4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x58ed19
push eax
call dword [0x6d4c90]
add esp, 4
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x58ed62
cmp al, 0x76
je 0x58ed62
cmp al, 0x6d
je 0x58ed62
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.00553fa0
push 0x69379c
push 0x2c8f7
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.00553fa0
add esp, 0x20
mov byte [ebx + 0x61], 0xba
mov edi, 0x15
jmp 0x58eda0
cmp byte [esi + 0x57], 0
jne 0x58ed88
mov eax, dword [esi + 0x48]
mov ebx, ebp
and eax, dword [esi + 0x40]
mov dword [esp + 0x18], eax
mov ecx, eax
cmp al, 7
je 0x58ed8f
mov edi, ecx
test ecx, ecx
je 0x58eda0
mov byte [ebx + 0x61], 0xba
jmp 0x58eda0
mov ebx, esi
mov edi, 7
jmp 0x58ed93
mov edi, dword [esp + 0x18]
push 0
push ebx
call fcn.005a5a40
add esp, 8
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [eax], ebx
test ecx, ecx
je 0x58ee36
lea eax, [ecx]
cmp byte [eax - 1], 0
lea ecx, [eax - 1]
jne 0x58edb2
cmp byte [eax - 2], 0
jne 0x58edb2
cmp byte [eax - 3], 0
jne 0x58edb2
cmp byte [eax - 4], 0
lea esi, [eax - 4]
jne 0x58edb2
test esi, esi
je 0x58ee36
cmp dword [0x6d4c38], 0
je 0x58ee2c
mov eax, dword [0x6ecdc0]
test eax, eax
je 0x58edf2
push eax
call dword [0x6d4c88]
add esp, 4
push esi
call dword [0x6d4c64]
sub dword [0x6ecd58], eax
dec dword [0x6ecd7c]
push esi
call dword [0x6d4c5c]
mov eax, dword [0x6ecdc0]
add esp, 8
test eax, eax
je 0x58ee36
push eax
call dword [0x6d4c90]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push esi
call dword [0x6d4c5c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret