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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x511080]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, edx
mov dword [esp + 0x20], ecx
xor edx, edx
mov dword [esp + 0x24], ebx
push esi
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], edx
mov dword [ebx], edx
call fcn.004c6550
test eax, eax
jne 0x4ca375
mov ebx, dword [ebp + 8]
cmp byte [0x511c1c], al
jne 0x4c99a6
mov dword [esp + 0x14], eax
jmp 0x4c99d5
test ebx, 0x8000
je 0x4c99b8
mov dword [esp + 0x14], 0
jmp 0x4c99d5
test ebx, 0x10000
je 0x4c99ca
mov dword [esp + 0x14], 1
jmp 0x4c99d5
movzx eax, byte [0x511c1d]
mov dword [esp + 0x14], eax
test ebx, 0x40000
je 0x4c99e5
and ebx, 0xfffdffff
jmp 0x4c99f4
cmp dword [0x511ce0], 0
je 0x4c99f4
or ebx, 0x20000
and ebx, 0xfff600e7
push 0
push 0x218
mov dword [esp + 0x18], ebx
mov dword [ebp + 8], ebx
call fcn.004188b0
mov esi, eax
add esp, 8
test esi, esi
je 0x4ca2d1
push 0x218
push 0
push esi
call fcn.004d4bd0
add esp, 0xc
mov edi, esi
cmp dword [esp + 0x14], 0
je 0x4c9ac8
cmp byte [0x511c1c], 0
jne 0x4c9a49
mov dword [esi + 0xc], 0
jmp 0x4c9a5b
push 1
call dword [0x511c60]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4c9ac8
cmp dword [0x511c18], 0
je 0x4c9ab4
mov eax, dword [0x514e38]
test eax, eax
je 0x4c9a77
push eax
call dword [0x511c68]
add esp, 4
push esi
call dword [0x511c44]
sub dword [0x514cc8], eax
add esp, 4
dec dword [0x514cec]
push esi
call dword [0x511c3c]
mov eax, dword [0x514e38]
add esp, 4
test eax, eax
je 0x4c9abe
push eax
call dword [0x511c70]
add esp, 4
xor ebx, ebx
lea edi, [ebx + 7]
jmp 0x4ca2de
push esi
call dword [0x511c3c]
add esp, 4
xor ebx, ebx
lea edi, [ebx + 7]
jmp 0x4ca2de
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4c9ad9
push eax
call dword [0x511c68]
add esp, 4
mov eax, ebx
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, 0x500b60
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 [0x5005e0]
push fcn.004c7350
push 0
movups xmmword [esi + 0x78], xmm0
push 1
movups xmm0, xmmword [0x5005f0]
movups xmmword [esi + 0x88], xmm0
movups xmm0, xmmword [0x500600]
mov byte [esi + 0x55], 1
mov byte [esi + 0x5a], 0xff
movups xmmword [esi + 0x98], xmm0
mov dword [esi + 0xa4], eax
mov eax, dword [0x511cc0]
mov ecx, dword [0x511cc4]
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], 0x512b40
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.004c9150
push 0
push fcn.004c7350
push 0
push 3
mov edx, 0x500b60
mov ecx, esi
call fcn.004c9150
push 0
push fcn.004c7350
push 0
push 2
mov edx, 0x500b60
mov ecx, esi
call fcn.004c9150
push 0
push 0x4c7420
push 0
push 1
mov edx, str.NOCASE
mov ecx, esi
call fcn.004c9150
add esp, 0x40
mov edx, str.RTRIM
mov ecx, esi
push 0
push 0x4c73d0
push 0
push 1
call fcn.004c9150
add esp, 0x10
mov ebx, esi
cmp byte [esi + 0x57], 0
jne 0x4ca250
mov ecx, dword [esp + 0x10]
mov eax, 1
mov dword [esi + 0x3c], ecx
and ecx, 7
shl eax, cl
test al, 0x46
jne 0x4c9c8b
push 0x50c3cc
push 0x2aeb9
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.0041bb20
add esp, 0x14
mov ecx, 0x15
jmp 0x4c9cce
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [ebp + 8]
push esi
push eax
call fcn.004c9370
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x4c9d55
cmp eax, 7
jne 0x4c9cc2
mov ecx, esi
call fcn.004192e0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x18]
xor edx, edx
test ebx, ebx
mov eax, 0x506b40
push ebx
cmove eax, edx
push eax
push ecx
push esi
call fcn.0041c820
add esp, 0x10
test ebx, ebx
je 0x4c9d4e
cmp dword [0x511c18], 0
je 0x4c9d44
mov eax, dword [0x514e38]
test eax, eax
je 0x4c9d0a
push eax
call dword [0x511c68]
add esp, 4
push ebx
call dword [0x511c44]
sub dword [0x514cc8], eax
add esp, 4
dec dword [0x514cec]
push ebx
call dword [0x511c3c]
mov eax, dword [0x514e38]
add esp, 4
test eax, eax
je 0x4c9d4e
push eax
call dword [0x511c70]
add esp, 4
mov ebx, esi
jmp 0x4ca250
push ebx
call dword [0x511c3c]
add esp, 4
mov ebx, esi
jmp 0x4ca250
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x30]
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.00431f30
add esp, 0x10
test eax, eax
je 0x4c9d9d
cmp eax, 0xc0a
jne 0x4c9d8a
mov eax, 7
mov ecx, eax
mov edx, eax
mov dword [esi + 0x40], ecx
mov ecx, esi
call fcn.0041c770
jmp 0x4ca250
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
cmp byte [ecx + 9], 0
je 0x4c9db7
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x4c9db7
call fcn.0042fda0
mov edx, dword [esi + 0x10]
mov ecx, esi
mov edx, dword [edx + 4]
call fcn.00475e00
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0xc], eax
cmp byte [esi + 0x57], 0
jne 0x4c9e07
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x1b0]
push 0
mov edx, 0x500b60
mov eax, dword [eax + 0xc]
mov bl, byte [eax + 0x4d]
mov byte [esi + 0x54], bl
call fcn.0041e0a0
add esp, 4
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4c9e04
movzx eax, bl
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
add ecx, 0xffffffec
mov dword [esi + 8], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
cmp byte [ecx + 9], 0
je 0x4c9e1e
add dword [ecx + 0xc], 0xffffffff
jne 0x4c9e1e
call fcn.0042fd80
push 0
push 0x54
call fcn.004188b0
mov edi, eax
add esp, 8
test edi, edi
je 0x4c9ecf
push 0x54
push 0
push edi
call fcn.004d4bd0
mov ebx, esi
add esp, 0xc
cmp byte [edi + 0x4c], 0
mov ecx, ebx
mov eax, ebx
mov dword [esp + 0x14], eax
jne 0x4c9ede
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x44], 0
mov byte [edi + 0x4d], 1
mov dword [esp + 0x14], eax
jmp 0x4c9ede
mov ecx, esi
call fcn.004192e0
mov ebx, esi
mov dword [esp + 0x14], esi
mov eax, esi
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x10], ebx
mov dword [eax + 0x1c], edi
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 0x4ca24c
cmp dword [esi + 0x124], 0
mov dword [esi + 0x40], 0
je 0x4c9f36
xor edx, edx
mov ecx, esi
call fcn.0041c770
jmp 0x4c9f3d
mov dword [esi + 0x44], 0xffffffff
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4c9f4e
push eax
call dword [0x511c68]
add esp, 4
push 0
push 1
push 2
mov edx, str.MATCH
mov ecx, esi
call fcn.00475a40
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov edi, eax
test ecx, ecx
je 0x4c9f76
push ecx
call dword [0x511c70]
add esp, 4
test edi, edi
jne 0x4c9fb9
push str.MATCH
call fcn.0041b880
add esp, 4
test eax, eax
je 0x4c9fb2
push fcn.00418ac0
push edi
push edi
push edi
push edi
push 0x4c8420
push eax
push 1
push 2
mov edx, str.MATCH
mov ecx, esi
call fcn.004c81d0
add esp, 0x24
cmp eax, 7
jne 0x4c9fb9
mov ecx, esi
call fcn.004192e0
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x4ca008
cmp al, 0x76
je 0x4ca008
cmp al, 0x6d
je 0x4ca008
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.0041bb20
add esp, 0xc
push 0x50c3cc
push 0x2abe3
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.0041bb20
mov edi, dword [esp + 0x28]
add esp, 0x14
mov edx, 0x15
jmp 0x4ca1f2
cmp byte [esi + 0x57], 0
mov ebx, dword [esp + 0x10]
jne 0x4ca1e9
mov edx, dword [esi + 0x48]
mov ecx, dword [esp + 0x18]
mov edi, ecx
and edx, dword [esi + 0x40]
jne 0x4ca1f2
mov eax, 0x4ff488
mov dword [esp + 0x18], eax
mov ecx, ebx
mov edx, edi
mov dword [esp + 0x1c], ecx
cmp eax, str.rank
jge 0x4ca05e
mov eax, dword [eax]
push esi
call eax
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x18], eax
test edx, edx
je 0x4ca031
jmp 0x4ca1f2
cmp dword [0x514c20], 0
mov ebx, ecx
mov edi, edx
je 0x4ca18e
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
lea ebx, [ecx + 1]
cmp byte [0x511c1c], 0
jne 0x4ca091
xor edi, edi
jmp 0x4ca0b0
push 2
call dword [0x511c60]
mov edi, eax
add esp, 4
test edi, edi
je 0x4ca0ac
push edi
call dword [0x511c68]
add esp, 4
mov ecx, dword [esp + 0x10]
cmp ecx, dword [0x514c20]
jb 0x4ca0c4
mov dword [esp + 0x18], 0
xor ebx, ebx
jmp 0x4ca0d0
mov eax, dword [0x514c24]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x18], eax
test edi, edi
je 0x4ca0de
push edi
call dword [0x511c70]
add esp, 4
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x30], edi
test eax, eax
je 0x4ca119
push 0x500cd0
lea ecx, [esp + 0x34]
push ecx
push esi
call eax
add esp, 0xc
test eax, eax
je 0x4ca115
push dword [esp + 0x30]
push str.automatic_extension_loading_failed:__s
push eax
push esi
call fcn.0041c820
add esp, 0x10
xor ebx, ebx
mov edi, dword [esp + 0x30]
test edi, edi
je 0x4ca175
cmp dword [0x511c18], 0
je 0x4ca16b
mov eax, dword [0x514e38]
test eax, eax
je 0x4ca139
push eax
call dword [0x511c68]
add esp, 4
push edi
call dword [0x511c44]
sub dword [0x514cc8], eax
add esp, 4
dec dword [0x514cec]
push edi
call dword [0x511c3c]
mov eax, dword [0x514e38]
add esp, 4
test eax, eax
je 0x4ca175
push eax
call dword [0x511c70]
jmp 0x4ca172
push edi
call dword [0x511c3c]
add esp, 4
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
test ebx, ebx
jne 0x4ca084
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov al, byte [esi + 0x61]
mov ecx, edi
mov edx, ebx
cmp al, 0xba
je 0x4ca1d5
cmp al, 0x76
je 0x4ca1d5
cmp al, 0x6d
je 0x4ca1d5
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.0041bb20
add esp, 0xc
push 0x50c3cc
push 0x2abe3
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.0041bb20
add esp, 0x14
jmp 0x4ca250
cmp byte [esi + 0x57], 0
mov ebx, edx
mov edi, ecx
jne 0x4ca250
mov eax, dword [esi + 0x48]
and eax, dword [esi + 0x40]
jne 0x4ca250
jmp 0x4ca1fc
mov edi, dword [esp + 0x18]
mov edx, 7
mov ecx, esi
mov dword [esi + 0x40], edx
call fcn.0041c770
push dword [0x511c30]
xor edx, edx
mov ecx, esi
push dword [0x511c2c]
call fcn.004c6d90
mov eax, dword [esi + 0xc]
add esp, 8
test eax, eax
je 0x4ca225
push eax
call dword [0x511c68]
add esp, 4
mov eax, dword [esi + 0xc]
mov dword [esi + 0x110], 0x4c87d0
mov dword [esi + 0x114], 0x3e8
test eax, eax
je 0x4ca250
push eax
call dword [0x511c70]
add esp, 4
jmp 0x4ca250
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4ca261
push eax
call dword [0x511c70]
add esp, 4
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x4ca2ad
cmp al, 0x76
je 0x4ca2ad
cmp al, 0x6d
je 0x4ca2ad
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.0041bb20
add esp, 0xc
push 0x50c3cc
push 0x2abe3
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.0041bb20
add esp, 0x14
mov byte [ebx + 0x61], 0xba
mov edi, 0x15
jmp 0x4ca2e9
cmp byte [esi + 0x57], 0
jne 0x4ca2d3
mov eax, dword [esi + 0x48]
mov ebx, edi
and eax, dword [esi + 0x40]
mov dword [esp + 0x24], eax
mov ecx, eax
cmp al, 7
je 0x4ca2da
mov edi, ecx
test ecx, ecx
je 0x4ca2e9
mov byte [ebx + 0x61], 0xba
jmp 0x4ca2e9
mov ebx, esi
mov edi, 7
jmp 0x4ca2de
mov edi, dword [esp + 0x24]
xor edx, edx
mov ecx, ebx
call fcn.004c75b0
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [eax], ebx
test ecx, ecx
je 0x4ca373
lea eax, [ecx]
cmp byte [eax - 1], 0
lea ecx, [eax - 1]
jne 0x4ca2f7
cmp byte [eax - 2], 0
jne 0x4ca2f7
cmp byte [eax - 3], 0
jne 0x4ca2f7
cmp byte [eax - 4], 0
lea esi, [eax - 4]
jne 0x4ca2f7
test esi, esi
je 0x4ca373
cmp dword [0x511c18], 0
je 0x4ca369
mov eax, dword [0x514e38]
test eax, eax
je 0x4ca337
push eax
call dword [0x511c68]
add esp, 4
push esi
call dword [0x511c44]
sub dword [0x514cc8], eax
add esp, 4
dec dword [0x514cec]
push esi
call dword [0x511c3c]
mov eax, dword [0x514e38]
add esp, 4
test eax, eax
je 0x4ca373
push eax
call dword [0x511c70]
jmp 0x4ca370
push esi
call dword [0x511c3c]
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret