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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x570400]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, edx
mov dword [esp + 0xc], ecx
xor edx, edx
mov dword [esp + 0x1c], ebx
push esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], edx
mov dword [ebx], edx
call fcn.004ccb00
test eax, eax
jne 0x4d08ce
mov edi, dword [ebp + 8]
cmp byte [0x570574], al
jne 0x4cffa4
xor ebx, ebx
jmp 0x4cffc4
test edi, 0x8000
je 0x4cffb0
xor ebx, ebx
jmp 0x4cffc4
mov ebx, 1
test edi, 0x10000
jne 0x4cffc4
movzx ebx, byte [0x570575]
test edi, 0x40000
je 0x4cffd4
and edi, 0xfffdffff
jmp 0x4cffe3
cmp dword [0x570638], 0
je 0x4cffe3
or edi, 0x20000
push 0
and edi, 0xfff600e7
push 0x218
mov dword [ebp + 8], edi
call fcn.00418960
mov esi, eax
add esp, 8
test esi, esi
je 0x4d0828
push 0x218
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test ebx, ebx
je 0x4d00ae
cmp byte [0x570574], 0
jne 0x4d002f
mov dword [esi + 0xc], 0
jmp 0x4d0041
push 1
call dword [0x5705b8]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4d00ae
cmp dword [0x570570], 0
je 0x4d009a
mov eax, dword [0x5733e8]
test eax, eax
je 0x4d005d
push eax
call dword [0x5705c0]
add esp, 4
push esi
call dword [0x57059c]
sub dword [0x573270], eax
add esp, 4
dec dword [0x573294]
push esi
call dword [0x570594]
mov eax, dword [0x5733e8]
add esp, 4
test eax, eax
je 0x4d00a4
push eax
call dword [0x5705c8]
add esp, 4
xor ebx, ebx
lea edi, [ebx + 7]
jmp 0x4d0835
push esi
call dword [0x570594]
add esp, 4
xor ebx, ebx
lea edi, [ebx + 7]
jmp 0x4d0835
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4d00bf
push eax
call dword [0x5705c0]
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
mov edx, 0x55bb18
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 [0x55b584]
push fcn.004cd950
push 0
movups xmmword [esi + 0x78], xmm0
push 1
movups xmm0, xmmword [0x55b594]
movups xmmword [esi + 0x88], xmm0
movups xmm0, xmmword [0x55b5a4]
mov byte [esi + 0x55], 1
mov byte [esi + 0x5a], 0xff
movups xmmword [esi + 0x98], xmm0
mov dword [esi + 0xa4], eax
mov eax, dword [0x570618]
mov ecx, dword [0x57061c]
or dword [esi + 0x20], 0xe00480e0
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x34], ecx
mov ecx, esi
mov dword [esi + 0x64], 0
mov dword [esi + 0xb8], 0x5715f8
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.004cf750
push 0
push fcn.004cd950
push 0
push 3
mov edx, 0x55bb18
mov ecx, esi
call fcn.004cf750
push 0
push fcn.004cd950
push 0
push 2
mov edx, 0x55bb18
mov ecx, esi
call fcn.004cf750
push 0
push 0x4cda20
push 0
push 1
mov edx, str.NOCASE
mov ecx, esi
call fcn.004cf750
add esp, 0x40
mov edx, str.RTRIM
mov ecx, esi
push 0
push 0x4cd9d0
push 0
push 1
call fcn.004cf750
add esp, 0x10
mov ebx, esi
cmp byte [esi + 0x57], 0
jne 0x4d0326
mov dword [esi + 0x3c], edi
mov eax, 1
and edi, 7
mov ecx, edi
shl eax, cl
test al, 0x46
jne 0x4d026f
push 0x567754
push 0x2cbcf
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.0041b8b0
add esp, 0x14
mov edi, 0x15
jmp 0x4d02ac
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [ebp + 8]
push esi
push eax
call fcn.004cf970
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4d0394
cmp edi, 7
jne 0x4d02a4
mov ecx, esi
call fcn.00419390
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
mov eax, 0x561b18
push ebx
cmove eax, ecx
push eax
push edi
push esi
call fcn.0041c6f0
add esp, 0x10
test ebx, ebx
je 0x4d0324
cmp dword [0x570570], 0
je 0x4d031a
mov eax, dword [0x5733e8]
test eax, eax
je 0x4d02e8
push eax
call dword [0x5705c0]
add esp, 4
push ebx
call dword [0x57059c]
sub dword [0x573270], eax
add esp, 4
dec dword [0x573294]
push ebx
call dword [0x570594]
mov eax, dword [0x5733e8]
add esp, 4
test eax, eax
je 0x4d0324
push eax
call dword [0x5705c8]
jmp 0x4d0321
push ebx
call dword [0x570594]
add esp, 4
mov ebx, esi
mov edi, esi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4d0339
push eax
call dword [0x5705c8]
add esp, 4
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x4d0804
cmp al, 0x76
je 0x4d0804
cmp al, 0x6d
je 0x4d0804
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.0041b8b0
add esp, 0xc
push 0x567754
push 0x2c8f6
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.0041b8b0
add esp, 0x14
mov byte [ebx + 0x61], 0xba
mov edi, 0x15
jmp 0x4d0840
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x28]
or eax, 0x100
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 0x10]
push 0
add eax, 4
mov dword [esp + 0x28], edx
push eax
push esi
call fcn.00433010
add esp, 0x10
test eax, eax
je 0x4d03dc
cmp eax, 0xc0a
jne 0x4d03c9
mov eax, 7
mov ecx, eax
mov edx, eax
mov dword [esi + 0x40], ecx
mov ecx, esi
call fcn.0041c5f0
jmp 0x4d0326
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
cmp byte [ecx + 9], 0
je 0x4d03f6
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x4d03f6
call fcn.00430df0
mov edx, dword [esi + 0x10]
mov ecx, esi
mov edx, dword [edx + 4]
call fcn.00478c90
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0xc], eax
cmp byte [esi + 0x57], 0
jne 0x4d0469
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x1b0]
push 0
mov edx, 0x55bb18
mov eax, dword [eax + 0xc]
mov bl, byte [eax + 0x4d]
mov byte [esi + 0x54], bl
call fcn.0041f4e0
add esp, 4
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4d0443
movzx eax, bl
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
add ecx, 0xffffffec
mov dword [esi + 8], ecx
mov ebx, esi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4d0469
nop
mov eax, dword [ecx + 0x98]
and eax, 0xfffffffe
or eax, 2
mov dword [ecx + 0x98], eax
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x4d0450
mov eax, dword [esi + 0x10]
mov edi, esi
mov dword [esp + 0x14], ebx
mov ecx, dword [eax + 4]
cmp byte [ecx + 9], 0
je 0x4d0486
add dword [ecx + 0xc], 0xffffffff
jne 0x4d0486
call fcn.00430dd0
xor edx, edx
mov ecx, esi
call fcn.00478c90
mov ecx, dword [esi + 0x10]
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 0x4d0328
cmp dword [esi + 0x124], 0
mov dword [esi + 0x40], 0
je 0x4d04df
xor edx, edx
mov ecx, esi
call fcn.0041c5f0
jmp 0x4d04e6
mov dword [esi + 0x44], 0xffffffff
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4d04f7
push eax
call dword [0x5705c0]
add esp, 4
push 0
push 1
push 2
mov edx, str.MATCH
mov ecx, esi
call fcn.004788d0
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x4d0525
push ecx
call dword [0x5705c8]
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x4d0571
push str.MATCH
push 0x561b18
call fcn.0041b6c0
add esp, 8
test eax, eax
je 0x4d056a
push fcn.00418b70
push 0
push 0
push 0
push 0
push 0x4ceb10
push eax
push 1
push 2
mov edx, str.MATCH
mov ecx, esi
call fcn.004ce8c0
add esp, 0x24
cmp eax, 7
jne 0x4d0571
mov ecx, esi
call fcn.00419390
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x4d05bc
cmp al, 0x76
je 0x4d05bc
cmp al, 0x6d
je 0x4d05bc
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.0041b8b0
add esp, 0xc
push 0x567754
push 0x2c8f6
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.0041b8b0
add esp, 0x14
mov eax, 0x15
jmp 0x4d07a1
cmp byte [esi + 0x57], 0
jne 0x4d0796
mov eax, dword [esi + 0x48]
mov ecx, esi
mov edx, dword [esp + 0x14]
mov ebx, edx
and eax, dword [esi + 0x40]
jne 0x4d07a1
mov edi, 0x55a390
nop
mov eax, ecx
mov edx, ebx
cmp edi, 0x55a398
jge 0x4d0604
mov eax, dword [edi]
push esi
call eax
add esp, 4
add edi, 4
mov ecx, esi
test eax, eax
je 0x4d05e0
mov edi, ecx
jmp 0x4d07a1
cmp dword [0x5731cc], 0
mov ebx, edx
mov edi, eax
je 0x4d0730
xor ecx, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
lea ebx, [ecx + 1]
cmp byte [0x570574], 0
jne 0x4d0633
xor edi, edi
jmp 0x4d0652
push 2
call dword [0x5705b8]
mov edi, eax
add esp, 4
test edi, edi
je 0x4d064e
push edi
call dword [0x5705c0]
add esp, 4
mov ecx, dword [esp + 0x18]
cmp ecx, dword [0x5731cc]
jb 0x4d0666
mov dword [esp + 0x14], 0
xor ebx, ebx
jmp 0x4d0672
mov eax, dword [0x5731d0]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x14], eax
test edi, edi
je 0x4d0680
push edi
call dword [0x5705c8]
add esp, 4
mov eax, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x28], edi
test eax, eax
je 0x4d06bb
push 0x55bc98
lea ecx, [esp + 0x2c]
push ecx
push esi
call eax
add esp, 0xc
test eax, eax
je 0x4d06b7
push dword [esp + 0x28]
push str.automatic_extension_loading_failed:__s
push eax
push esi
call fcn.0041c6f0
add esp, 0x10
xor ebx, ebx
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4d0717
cmp dword [0x570570], 0
je 0x4d070d
mov eax, dword [0x5733e8]
test eax, eax
je 0x4d06db
push eax
call dword [0x5705c0]
add esp, 4
push edi
call dword [0x57059c]
sub dword [0x573270], eax
add esp, 4
dec dword [0x573294]
push edi
call dword [0x570594]
mov eax, dword [0x5733e8]
add esp, 4
test eax, eax
je 0x4d0717
push eax
call dword [0x5705c8]
jmp 0x4d0714
push edi
call dword [0x570594]
add esp, 4
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
test ebx, ebx
jne 0x4d0626
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov al, byte [esi + 0x61]
mov ecx, edi
mov edx, ebx
cmp al, 0xba
je 0x4d077a
cmp al, 0x76
je 0x4d077a
cmp al, 0x6d
je 0x4d077a
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.0041b8b0
add esp, 0xc
push 0x567754
push 0x2c8f6
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.0041b8b0
add esp, 0x14
jmp 0x4d0328
cmp byte [esi + 0x57], 0
mov ebx, edx
mov edi, ecx
jne 0x4d0328
mov eax, dword [esi + 0x48]
and eax, dword [esi + 0x40]
jne 0x4d0328
jmp 0x4d07ad
mov ebx, dword [esp + 0x14]
mov eax, 7
mov edi, esi
mov edx, eax
mov dword [esi + 0x40], eax
mov ecx, esi
call fcn.0041c5f0
push dword [0x570588]
xor edx, edx
mov ecx, esi
push dword [0x570584]
call fcn.004cd380
mov eax, dword [esi + 0xc]
add esp, 8
test eax, eax
je 0x4d07d6
push eax
call dword [0x5705c0]
add esp, 4
mov eax, dword [esi + 0xc]
mov dword [esi + 0x110], 0x4ceed0
mov dword [esi + 0x114], 0x3e8
test eax, eax
je 0x4d0328
push eax
call dword [0x5705c8]
add esp, 4
jmp 0x4d0328
cmp byte [esi + 0x57], 0
jne 0x4d082a
mov eax, dword [esi + 0x48]
mov ebx, edi
and eax, dword [esi + 0x40]
mov dword [esp + 0x14], eax
mov ecx, eax
cmp al, 7
je 0x4d0831
mov edi, ecx
test ecx, ecx
je 0x4d0840
mov byte [ebx + 0x61], 0xba
jmp 0x4d0840
mov ebx, esi
mov edi, 7
jmp 0x4d0835
mov edi, dword [esp + 0x14]
xor edx, edx
mov ecx, ebx
call fcn.004cdbb0
xor ebx, ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [eax], ebx
test ecx, ecx
je 0x4d08cc
nop
lea eax, [ecx]
cmp byte [eax - 1], 0
lea ecx, [eax - 1]
jne 0x4d0850
cmp byte [eax - 2], 0
jne 0x4d0850
cmp byte [eax - 3], 0
jne 0x4d0850
cmp byte [eax - 4], 0
lea esi, [eax - 4]
jne 0x4d0850
test esi, esi
je 0x4d08cc
cmp dword [0x570570], 0
je 0x4d08c2
mov eax, dword [0x5733e8]
test eax, eax
je 0x4d0890
push eax
call dword [0x5705c0]
add esp, 4
push esi
call dword [0x57059c]
sub dword [0x573270], eax
add esp, 4
dec dword [0x573294]
push esi
call dword [0x570594]
mov eax, dword [0x5733e8]
add esp, 4
test eax, eax
je 0x4d08cc
push eax
call dword [0x5705c8]
jmp 0x4d08c9
push esi
call dword [0x570594]
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0054507b
mov esp, ebp
pop ebp
ret