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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebp
mov dword [eax], ebp
call fcn.005156a0
test eax, eax
jne 0x4bb81b
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
cmp byte [0x58d42c], al
jne 0x4baff8
xor ebx, ebx
jmp 0x4bb018
test edi, 0x8000
je 0x4bb004
xor ebx, ebx
jmp 0x4bb018
mov ebx, 1
test edi, 0x10000
jne 0x4bb018
movzx ebx, byte [0x58d42d]
test edi, 0x40000
je 0x4bb028
and edi, 0xfffdffff
jmp 0x4bb036
cmp dword [0x58d4f0], ebp
je 0x4bb036
or edi, 0x20000
push 0
and edi, 0xfff600e7
push 0x228
mov dword [esp + 0x38], edi
call fcn.004e8780
mov esi, eax
add esp, 8
test esi, esi
je 0x4bb765
push 0x228
push 0
push esi
call fcn.005326d0
add esp, 0xc
test ebx, ebx
je 0x4bb0b1
cmp byte [0x58d42c], 0
jne 0x4bb08c
push esi
mov dword [esi + 0xc], ebp
call fcn.004941f0
add esp, 4
xor ebx, ebx
lea esi, [ebx + 7]
jmp 0x4bb772
push 1
call dword [0x58d470]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4bb0b1
push esi
call fcn.004941f0
add esp, 4
xor ebx, ebx
lea esi, [ebx + 7]
jmp 0x4bb772
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4bb0c2
push eax
call dword [0x58d478]
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 [0x571144]
push fcn.0049c2a0
push 0
movups xmmword [esi + 0x78], xmm0
push 1
movups xmm0, xmmword [0x571154]
push str.BINARY
push esi
movups xmmword [esi + 0x88], xmm0
movups xmm0, xmmword [0x571164]
mov byte [esi + 0x55], 1
mov byte [esi + 0x5a], 0xff
movups xmmword [esi + 0x98], xmm0
mov dword [esi + 0xa4], eax
mov eax, dword [0x58d4d0]
mov ecx, dword [0x58d4d4]
or dword [esi + 0x20], 0xe00480e0
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x64], ebp
mov dword [esi + 0xb8], 0x58d610
mov dword [esi + 0x24], eax
mov dword [esi + 0x1b8], ebp
mov dword [esi + 0x1b4], ebp
mov dword [esi + 0x1b0], ebp
mov dword [esi + 0x1bc], ebp
mov dword [esi + 0x18c], ebp
mov dword [esi + 0x188], ebp
mov dword [esi + 0x184], ebp
mov dword [esi + 0x190], ebp
call fcn.004a4550
push 0
push fcn.0049c2a0
push 0
push 3
push str.BINARY
push esi
call fcn.004a4550
push 0
push fcn.0049c2a0
push 0
push 2
push str.BINARY
push esi
call fcn.004a4550
add esp, 0x48
push 0
push 0x4bae30
push 0
push 1
push str.NOCASE
push esi
call fcn.004a4550
push 0
push 0x4c6600
push 0
push 1
push str.RTRIM
push esi
call fcn.004a4550
add esp, 0x30
mov ebx, esi
cmp byte [esi + 0x57], 0
jne 0x4bb2f3
mov ecx, edi
mov dword [esi + 0x3c], edi
and ecx, 7
mov eax, 1
shl eax, cl
test al, 0x46
jne 0x4bb233
push 0x2be62
call fcn.004e8da0
add esp, 4
jmp 0x4bb25f
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x38]
push dword [esp + 0x48]
call fcn.004eb4e0
mov ebp, dword [esp + 0x30]
add esp, 0x18
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x4bb35e
cmp eax, 7
jne 0x4bb279
push esi
call fcn.004e9170
add esp, 4
mov ebx, dword [esp + 0x14]
xor ecx, ecx
test ebx, ebx
mov eax, 0x56155c
push ebx
cmove eax, ecx
push eax
push dword [esp + 0x18]
push esi
call fcn.004d7bd0
add esp, 0x10
test ebx, ebx
je 0x4bb2f1
cmp dword [0x58d428], 0
je 0x4bb2e7
mov eax, dword [0x590a50]
test eax, eax
je 0x4bb2b8
push eax
call dword [0x58d478]
add esp, 4
push ebx
call dword [0x58d454]
sub dword [0x5909e8], eax
dec dword [0x590a0c]
push ebx
call dword [0x58d44c]
mov eax, dword [0x590a50]
add esp, 8
test eax, eax
je 0x4bb2f1
push eax
call dword [0x58d480]
jmp 0x4bb2ee
push ebx
call dword [0x58d44c]
add esp, 4
mov ebx, esi
mov edi, esi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4bb306
push eax
call dword [0x58d480]
add esp, 4
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x4bb741
cmp al, 0x76
je 0x4bb741
cmp al, 0x6d
je 0x4bb741
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.004849d0
push 0x5797bc
push 0x2bb89
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.004849d0
add esp, 0x20
mov byte [ebx + 0x61], 0xba
mov esi, 0x15
jmp 0x4bb77f
mov eax, dword [esi + 0x10]
or edi, 0x100
push edi
push 0
add eax, 4
push eax
push esi
push ebp
push dword [esi]
call fcn.004cfa20
add esp, 0x18
test eax, eax
je 0x4bb39a
cmp eax, 0xc0a
mov ecx, 7
cmove eax, ecx
push eax
push esi
call fcn.004d7a80
add esp, 8
jmp 0x4bb2f3
mov eax, dword [esi + 0x10]
push dword [eax + 4]
call fcn.004ce840
mov eax, dword [esi + 0x10]
push dword [eax + 4]
push esi
call fcn.004f4270
mov ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [ecx + 0xc], eax
cmp byte [esi + 0x57], 0
jne 0x4bb3d4
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
movzx eax, byte [eax + 0x4d]
push eax
push esi
call fcn.004f7b30
add esp, 8
mov eax, dword [esi + 0x10]
push dword [eax + 4]
call fcn.004cf960
push 0
push esi
call fcn.004f4270
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 0x4bb2f3
cmp dword [esi + 0x124], 0
mov dword [esi + 0x40], 0
je 0x4bb43c
push 0
push esi
call fcn.004d7ab0
add esp, 8
jmp 0x4bb443
mov dword [esi + 0x44], 0xffffffff
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4bb454
push eax
call dword [0x58d478]
add esp, 4
push 0
push 1
push 2
push str.MATCH
push esi
call fcn.004dd630
mov ecx, dword [esi + 0xc]
add esp, 0x14
mov edi, eax
test ecx, ecx
je 0x4bb47b
push ecx
call dword [0x58d480]
add esp, 4
test edi, edi
jne 0x4bb4c4
push str.MATCH
push 0x56155c
call fcn.00493ec0
add esp, 8
test eax, eax
je 0x4bb4bb
push fcn.004941f0
push edi
push edi
push edi
push edi
push 0x4e7020
push eax
push 1
push 2
push str.MATCH
push esi
call fcn.004a46e0
add esp, 0x2c
cmp eax, 7
jne 0x4bb4c4
push esi
call fcn.004e9170
add esp, 4
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x4bb50e
cmp al, 0x76
je 0x4bb50e
cmp al, 0x6d
je 0x4bb50e
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.004849d0
push 0x5797bc
push 0x2bb89
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.004849d0
add esp, 0x20
mov eax, 0x15
mov edi, esi
jmp 0x4bb6e1
cmp byte [esi + 0x57], 0
jne 0x4bb6da
mov eax, dword [esi + 0x48]
mov ecx, ebx
mov edi, ebx
and eax, dword [esi + 0x40]
jne 0x4bb6e1
mov edi, 0x570f40
nop dword [eax]
mov eax, ecx
mov edx, ebx
cmp edi, 0x570f48
jge 0x4bb554
mov eax, dword [edi]
push esi
call eax
add esp, 4
add edi, 4
mov ecx, ebx
test eax, eax
je 0x4bb530
mov edi, ecx
jmp 0x4bb6e1
cmp dword [0x590c34], 0
mov edi, eax
je 0x4bb677
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
lea ebp, [ecx + 1]
cmp byte [0x58d42c], 0
jne 0x4bb57d
xor edi, edi
jmp 0x4bb59c
push 2
call dword [0x58d470]
mov edi, eax
add esp, 4
test edi, edi
je 0x4bb598
push edi
call dword [0x58d478]
add esp, 4
mov ecx, dword [esp + 0x14]
cmp ecx, dword [0x590c34]
jb 0x4bb5b0
mov dword [esp + 0x1c], 0
xor ebp, ebp
jmp 0x4bb5bc
mov eax, dword [0x590c38]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
test edi, edi
je 0x4bb5ca
push edi
call dword [0x58d480]
add esp, 4
mov eax, dword [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x10], edi
test eax, eax
je 0x4bb605
push 0x571a78
lea ecx, [esp + 0x14]
push ecx
push esi
call eax
add esp, 0xc
test eax, eax
je 0x4bb601
push dword [esp + 0x10]
push str.automatic_extension_loading_failed:__s
push eax
push esi
call fcn.004d7bd0
add esp, 0x10
xor ebp, ebp
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4bb65e
cmp dword [0x58d428], 0
je 0x4bb654
mov eax, dword [0x590a50]
test eax, eax
je 0x4bb625
push eax
call dword [0x58d478]
add esp, 4
push edi
call dword [0x58d454]
sub dword [0x5909e8], eax
dec dword [0x590a0c]
push edi
call dword [0x58d44c]
mov eax, dword [0x590a50]
add esp, 8
test eax, eax
je 0x4bb65e
push eax
call dword [0x58d480]
jmp 0x4bb65b
push edi
call dword [0x58d44c]
add esp, 4
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
test ebp, ebp
jne 0x4bb570
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov al, byte [esi + 0x61]
mov ecx, edi
mov edx, ebx
cmp al, 0xba
je 0x4bb6be
cmp al, 0x76
je 0x4bb6be
cmp al, 0x6d
je 0x4bb6be
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.004849d0
push 0x5797bc
push 0x2bb89
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.004849d0
add esp, 0x20
jmp 0x4bb2f5
cmp byte [esi + 0x57], 0
mov ebx, edx
mov edi, ecx
jne 0x4bb2f5
mov eax, dword [esi + 0x48]
and eax, dword [esi + 0x40]
jne 0x4bb2f5
jmp 0x4bb6eb
mov eax, 7
mov edi, ebx
push eax
push esi
call fcn.004d7a80
add esp, 8
push dword [0x58d440]
push dword [0x58d43c]
push 0
push esi
call fcn.004c8b90
mov eax, dword [esi + 0xc]
add esp, 0x10
test eax, eax
je 0x4bb713
push eax
call dword [0x58d478]
add esp, 4
mov eax, dword [esi + 0xc]
mov dword [esi + 0x110], 0x50c820
mov dword [esi + 0x114], 0x3e8
test eax, eax
je 0x4bb2f5
push eax
call dword [0x58d480]
add esp, 4
jmp 0x4bb2f5
cmp byte [esi + 0x57], 0
jne 0x4bb767
mov eax, dword [esi + 0x48]
mov ebx, edi
and eax, dword [esi + 0x40]
mov dword [esp + 0x1c], eax
mov ecx, eax
cmp al, 7
je 0x4bb76e
mov esi, ecx
test ecx, ecx
je 0x4bb77f
mov byte [ebx + 0x61], 0xba
jmp 0x4bb77f
mov ebx, esi
mov esi, 7
jmp 0x4bb772
mov esi, dword [esp + 0x1c]
push 0
push ebx
call fcn.004d1970
add esp, 8
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov dword [eax], ebx
test ebp, ebp
je 0x4bb816
nop dword [eax]
cmp byte [ebp - 1], 0
lea eax, [ebp - 1]
jne 0x4bb7ae
cmp byte [ebp - 2], 0
jne 0x4bb7ae
cmp byte [ebp - 3], 0
jne 0x4bb7ae
add ebp, 0xfffffffc
cmp byte [ebp], 0
je 0x4bb7b2
mov ebp, eax
jmp 0x4bb790
test ebp, ebp
je 0x4bb816
cmp dword [0x58d428], 0
je 0x4bb80c
mov eax, dword [0x590a50]
test eax, eax
je 0x4bb7d2
push eax
call dword [0x58d478]
add esp, 4
push ebp
call dword [0x58d454]
sub dword [0x5909e8], eax
dec dword [0x590a0c]
push ebp
call dword [0x58d44c]
mov eax, dword [0x590a50]
add esp, 8
test eax, eax
je 0x4bb816
push eax
call dword [0x58d480]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x14
ret
push ebp
call dword [0x58d44c]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 0x14
ret