Function at 0x58dd00
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.005e9f00
test eax, eax
jne 0x58e55c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
cmp byte [0x6d3c3c], al
jne 0x58dd3b
xor ebx, ebx
jmp 0x58dd5b
test edi, 0x8000
je 0x58dd47
xor ebx, ebx
jmp 0x58dd5b
mov ebx, 1
test edi, 0x10000
jne 0x58dd5b
movzx ebx, byte [0x6d3c3d]
test edi, 0x40000
je 0x58dd6b
and edi, 0xfffdffff
jmp 0x58dd7a
cmp dword [0x6d3d00], 0
je 0x58dd7a
or edi, 0x20000
push 0
and edi, 0xfff600e7
push 0x230
mov dword [esp + 0x38], edi
call fcn.005bc3f0
mov esi, eax
add esp, 8
test esi, esi
je 0x58e4a6
push 0x230
push 0
push esi
call fcn.006213c0
add esp, 0xc
mov ebp, esi
test ebx, ebx
je 0x58ddfb
cmp byte [0x6d3c3c], 0
jne 0x58ddd6
push esi
mov dword [esi + 0xc], 0
call fcn.005643d0
add esp, 4
xor ebx, ebx
lea edi, [ebx + 7]
jmp 0x58e4b3
push 1
call dword [0x6d3c80]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
jne 0x58ddfb
push esi
call fcn.005643d0
add esp, 4
xor ebx, ebx
lea edi, [ebx + 7]
jmp 0x58e4b3
mov eax, dword [esi + 0xc]
test eax, eax
je 0x58de0c
push eax
call dword [0x6d3c88]
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 [0x689fa0]
push fcn.0056c010
push 0
movups xmmword [esi + 0x78], xmm0
push 1
movups xmm0, xmmword [0x689fb0]
push str.BINARY
push esi
movups xmmword [esi + 0x88], xmm0
movups xmm0, xmmword [0x689fc0]
mov byte [esi + 0x55], 1
mov byte [esi + 0x5a], 0xff
movups xmmword [esi + 0x98], xmm0
mov dword [esi + 0xa4], eax
mov eax, dword [0x6d3ce0]
mov ecx, dword [0x6d3ce4]
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], 0x6d3e2c
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.005747d0
push 0
push fcn.0056c010
push 0
push 3
push str.BINARY
push esi
call fcn.005747d0
push 0
push fcn.0056c010
push 0
push 2
push str.BINARY
push esi
call fcn.005747d0
add esp, 0x48
push 0
push 0x58db60
push 0
push 1
push str.NOCASE
push esi
call fcn.005747d0
push 0
push 0x599a30
push 0
push 1
push str.RTRIM
push esi
call fcn.005747d0
add esp, 0x30
mov ebx, esi
cmp byte [esi + 0x57], 0
jne 0x58e428
mov ecx, edi
mov dword [esi + 0x3c], edi
and ecx, 7
mov eax, 1
shl eax, cl
test al, 0x46
jne 0x58dfa3
push 0x2cbd0
call fcn.005bca80
add esp, 4
xor ecx, ecx
jmp 0x58dfcf
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.005bf310
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 0x58e070
cmp eax, 7
jne 0x58dfe9
push esi
call fcn.005bd130
add esp, 4
mov ebx, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
mov eax, 0x678638
push ebx
cmove eax, ecx
push eax
push dword [esp + 0x20]
push esi
call fcn.005ab570
add esp, 0x10
test ebx, ebx
je 0x58e069
cmp dword [0x6d3c38], 0
je 0x58e05f
mov eax, dword [0x6ebdc0]
test eax, eax
je 0x58e028
push eax
call dword [0x6d3c88]
add esp, 4
push ebx
call dword [0x6d3c64]
sub dword [0x6ebd58], eax
dec dword [0x6ebd7c]
push ebx
call dword [0x6d3c5c]
mov eax, dword [0x6ebdc0]
add esp, 8
test eax, eax
je 0x58e069
push eax
call dword [0x6d3c90]
add esp, 4
mov ebx, esi
jmp 0x58e428
push ebx
call dword [0x6d3c5c]
add esp, 4
mov ebx, esi
jmp 0x58e428
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.005a3220
add esp, 0x18
test eax, eax
je 0x58e0ac
cmp eax, 0xc0a
mov ecx, 7
cmove eax, ecx
push eax
push esi
call fcn.005ab440
add esp, 8
jmp 0x58e428
mov eax, dword [esi + 0x10]
push dword [eax + 4]
call fcn.005a1ff0
mov eax, dword [esi + 0x10]
push dword [eax + 4]
push esi
call fcn.005c83a0
mov ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [ecx + 0xc], eax
cmp byte [esi + 0x57], 0
jne 0x58e0e6
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
movzx eax, byte [eax + 0x4d]
push eax
push esi
call fcn.005cbd70
add esp, 8
mov eax, dword [esi + 0x10]
push dword [eax + 4]
call fcn.005a3160
push 0
push esi
call fcn.005c83a0
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 0x58e428
cmp dword [esi + 0x124], 0
mov dword [esi + 0x40], 0
je 0x58e14e
push 0
push esi
call fcn.005ab470
add esp, 8
jmp 0x58e155
mov dword [esi + 0x44], 0xffffffff
mov eax, dword [esi + 0xc]
test eax, eax
je 0x58e166
push eax
call dword [0x6d3c88]
add esp, 4
push 0
push 1
push 2
push str.MATCH
push esi
call fcn.005b11d0
mov ecx, dword [esi + 0xc]
add esp, 0x14
mov edi, eax
test ecx, ecx
je 0x58e18d
push ecx
call dword [0x6d3c90]
add esp, 4
test edi, edi
jne 0x58e1d6
push str.MATCH
push 0x678638
call fcn.005640a0
add esp, 8
test eax, eax
je 0x58e1cd
push fcn.005643d0
push edi
push edi
push edi
push edi
push 0x5bacb0
push eax
push 1
push 2
push str.MATCH
push esi
call fcn.00574960
add esp, 0x2c
cmp eax, 7
jne 0x58e1d6
push esi
call fcn.005bd130
add esp, 4
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x58e21e
cmp al, 0x76
je 0x58e21e
cmp al, 0x6d
je 0x58e21e
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.005536b0
push 0x69279c
push 0x2c8f7
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.005536b0
add esp, 0x20
mov eax, 0x15
jmp 0x58e3d1
cmp byte [esi + 0x57], 0
jne 0x58e3ca
mov eax, dword [esi + 0x48]
mov ecx, ebx
and eax, dword [esi + 0x40]
jne 0x58e3d1
mov edi, 0x689d98
nop dword [eax + eax]
mov ecx, ebp
mov edx, ebx
cmp edi, 0x689da0
jge 0x58e260
mov eax, dword [edi]
push esi
call eax
add esp, 4
add edi, 4
test eax, eax
je 0x58e240
jmp 0x58e3d1
cmp dword [0x6ebfa4], 0
mov dword [esp + 0x14], 1
je 0x58e372
xor ebx, ebx
cmp byte [0x6d3c3c], 0
jne 0x58e284
xor edi, edi
jmp 0x58e29f
push 2
call dword [0x6d3c80]
mov edi, eax
add esp, 4
test edi, edi
je 0x58e29f
push edi
call dword [0x6d3c88]
add esp, 4
cmp ebx, dword [0x6ebfa4]
jb 0x58e2b1
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x58e2b9
mov eax, dword [0x6ebfa8]
mov ebp, dword [eax + ebx*4]
test edi, edi
je 0x58e2c7
push edi
call dword [0x6d3c90]
add esp, 4
xor edi, edi
mov dword [esp + 0x10], edi
test ebp, ebp
je 0x58e308
push 0x68a8b0
lea eax, [esp + 0x14]
push eax
push esi
call ebp
add esp, 0xc
test eax, eax
je 0x58e304
push dword [esp + 0x10]
push str.automatic_extension_loading_failed:__s
push eax
push esi
call fcn.005ab570
mov edi, dword [esp + 0x20]
add esp, 0x10
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x58e30c
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x58e365
cmp dword [0x6d3c38], 0
je 0x58e35b
mov eax, dword [0x6ebdc0]
test eax, eax
je 0x58e32c
push eax
call dword [0x6d3c88]
add esp, 4
push edi
call dword [0x6d3c64]
sub dword [0x6ebd58], eax
dec dword [0x6ebd7c]
push edi
call dword [0x6d3c5c]
mov eax, dword [0x6ebdc0]
add esp, 8
test eax, eax
je 0x58e365
push eax
call dword [0x6d3c90]
jmp 0x58e362
push edi
call dword [0x6d3c5c]
add esp, 4
inc ebx
test ebp, ebp
jne 0x58e277
mov ebx, esi
mov ebp, ebx
mov al, byte [esi + 0x61]
mov ecx, ebp
mov edx, ebx
cmp al, 0xba
je 0x58e3b6
cmp al, 0x76
je 0x58e3b6
cmp al, 0x6d
je 0x58e3b6
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.005536b0
push 0x69279c
push 0x2c8f7
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.005536b0
add esp, 0x20
jmp 0x58e428
cmp byte [esi + 0x57], 0
mov ebx, edx
mov ebp, ecx
jne 0x58e428
mov eax, dword [esi + 0x48]
and eax, dword [esi + 0x40]
jne 0x58e428
jmp 0x58e3db
mov eax, 7
mov ebp, ebx
push eax
push esi
call fcn.005ab440
add esp, 8
push dword [0x6d3c50]
push dword [0x6d3c4c]
push 0
push esi
call fcn.0059c240
mov eax, dword [esi + 0xc]
add esp, 0x10
test eax, eax
je 0x58e403
push eax
call dword [0x6d3c88]
add esp, 4
mov eax, dword [esi + 0xc]
mov dword [esi + 0x110], 0x5e09e0
mov dword [esi + 0x114], 0x3e8
test eax, eax
je 0x58e428
push eax
call dword [0x6d3c90]
add esp, 4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x58e439
push eax
call dword [0x6d3c90]
add esp, 4
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x58e482
cmp al, 0x76
je 0x58e482
cmp al, 0x6d
je 0x58e482
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.005536b0
push 0x69279c
push 0x2c8f7
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.005536b0
add esp, 0x20
mov byte [ebx + 0x61], 0xba
mov edi, 0x15
jmp 0x58e4c0
cmp byte [esi + 0x57], 0
jne 0x58e4a8
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 0x58e4af
mov edi, ecx
test ecx, ecx
je 0x58e4c0
mov byte [ebx + 0x61], 0xba
jmp 0x58e4c0
mov ebx, esi
mov edi, 7
jmp 0x58e4b3
mov edi, dword [esp + 0x18]
push 0
push ebx
call fcn.005a51b0
add esp, 8
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [eax], ebx
test ecx, ecx
je 0x58e556
lea eax, [ecx]
cmp byte [eax - 1], 0
lea ecx, [eax - 1]
jne 0x58e4d2
cmp byte [eax - 2], 0
jne 0x58e4d2
cmp byte [eax - 3], 0
jne 0x58e4d2
cmp byte [eax - 4], 0
lea esi, [eax - 4]
jne 0x58e4d2
test esi, esi
je 0x58e556
cmp dword [0x6d3c38], 0
je 0x58e54c
mov eax, dword [0x6ebdc0]
test eax, eax
je 0x58e512
push eax
call dword [0x6d3c88]
add esp, 4
push esi
call dword [0x6d3c64]
sub dword [0x6ebd58], eax
dec dword [0x6ebd7c]
push esi
call dword [0x6d3c5c]
mov eax, dword [0x6ebdc0]
add esp, 8
test eax, eax
je 0x58e556
push eax
call dword [0x6d3c90]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push esi
call dword [0x6d3c5c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret