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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, edx
mov dword [esp + 4], ecx
push ebx
xor edx, edx
mov dword [esp + 0x1c], eax
push esi
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edx
mov dword [eax], edx
call fcn.0051a880
test eax, eax
jne 0x51e66c
mov edi, dword [ebp + 8]
cmp byte [0x5c5c24], al
jne 0x51dd72
xor ebx, ebx
jmp 0x51dd92
test edi, 0x8000
je 0x51dd7e
xor ebx, ebx
jmp 0x51dd92
mov ebx, 1
test edi, 0x10000
jne 0x51dd92
movzx ebx, byte [0x5c5c25]
test edi, 0x40000
je 0x51dda2
and edi, 0xfffdffff
jmp 0x51ddb1
cmp dword [0x5c5ce8], 0
je 0x51ddb1
or edi, 0x20000
push 0
and edi, 0xfff600e7
push 0x218
mov dword [ebp + 8], edi
call fcn.00473130
mov esi, eax
add esp, 8
test esi, esi
je 0x51e5bc
push 0x218
push 0
push esi
call fcn.005515a0
add esp, 0xc
test ebx, ebx
je 0x51de7c
cmp byte [0x5c5c24], 0
jne 0x51ddfd
mov dword [esi + 0xc], 0
jmp 0x51de0f
push 1
call dword [0x5c5c68]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
jne 0x51de7c
cmp dword [0x5c5c20], 0
je 0x51de68
mov eax, dword [0x5d4d18]
test eax, eax
je 0x51de2b
push eax
call dword [0x5c5c70]
add esp, 4
push esi
call dword [0x5c5c4c]
sub dword [0x5d4b20], eax
add esp, 4
dec dword [0x5d4b44]
push esi
call dword [0x5c5c44]
mov eax, dword [0x5d4d18]
add esp, 4
test eax, eax
je 0x51de72
push eax
call dword [0x5c5c78]
add esp, 4
xor ebx, ebx
lea edi, [ebx + 7]
jmp 0x51e5c9
push esi
call dword [0x5c5c44]
add esp, 4
xor ebx, ebx
lea edi, [ebx + 7]
jmp 0x51e5c9
mov eax, dword [esi + 0xc]
test eax, eax
je 0x51de8d
push eax
call dword [0x5c5c70]
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, 0x599460
and eax, 0xffffff00
add eax, 0xff
mov dword [esi + 0x48], eax
lea eax, [esi + 0x1c8]
mov dword [esi + 0x10], eax
xor eax, eax
mov word [esi + 0x134], ax
movups xmm0, xmmword [0x598ed8]
push fcn.0051b690
push 0
movups xmmword [esi + 0x78], xmm0
push 1
movups xmm0, xmmword [0x598ee8]
movups xmmword [esi + 0x88], xmm0
movups xmm0, xmmword [0x598ef8]
mov byte [esi + 0x55], 1
mov byte [esi + 0x5a], 0xff
movups xmmword [esi + 0x98], xmm0
mov dword [esi + 0xa4], eax
mov eax, dword [0x5c5cc8]
mov ecx, dword [0x5c5ccc]
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], 0x5c6b20
mov dword [esi + 0x24], eax
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1b0], 0
mov dword [esi + 0x1ac], 0
mov dword [esi + 0x1b8], 0
mov dword [esi + 0x188], 0
mov dword [esi + 0x184], 0
mov dword [esi + 0x180], 0
mov dword [esi + 0x18c], 0
call fcn.0051d530
push 0
push fcn.0051b690
push 0
push 3
mov edx, 0x599460
mov ecx, esi
call fcn.0051d530
push 0
push fcn.0051b690
push 0
push 2
mov edx, 0x599460
mov ecx, esi
call fcn.0051d530
push 0
push 0x51b760
push 0
push 1
mov edx, str.NOCASE
mov ecx, esi
call fcn.0051d530
add esp, 0x40
mov edx, str.RTRIM
mov ecx, esi
push 0
push 0x51b710
push 0
push 1
call fcn.0051d530
add esp, 0x10
mov ebx, esi
cmp byte [esi + 0x57], 0
jne 0x51e0f5
mov dword [esi + 0x3c], edi
mov eax, 1
and edi, 7
mov ecx, edi
shl eax, cl
test al, 0x46
jne 0x51e03d
push 0x5a636c
push 0x29f45
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.00475fc0
add esp, 0x14
mov edi, 0x15
jmp 0x51e07b
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [ebp + 8]
push esi
push eax
call fcn.0051d750
mov edi, eax
add esp, 0x10
test edi, edi
je 0x51e163
cmp edi, 7
jne 0x51e073
push esi
call fcn.00473ac0
add esp, 4
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], edx
mov ebx, dword [esp + 0x14]
xor ecx, ecx
test ebx, ebx
mov eax, 0x5a2868
push ebx
cmove eax, ecx
push eax
push edi
push esi
call fcn.004768f0
add esp, 0x10
test ebx, ebx
je 0x51e0f3
cmp dword [0x5c5c20], 0
je 0x51e0e9
mov eax, dword [0x5d4d18]
test eax, eax
je 0x51e0b7
push eax
call dword [0x5c5c70]
add esp, 4
push ebx
call dword [0x5c5c4c]
sub dword [0x5d4b20], eax
add esp, 4
dec dword [0x5d4b44]
push ebx
call dword [0x5c5c44]
mov eax, dword [0x5d4d18]
add esp, 4
test eax, eax
je 0x51e0f3
push eax
call dword [0x5c5c78]
jmp 0x51e0f0
push ebx
call dword [0x5c5c44]
add esp, 4
mov ebx, esi
mov edi, esi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x51e108
push eax
call dword [0x5c5c78]
add esp, 4
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x51e598
cmp al, 0x76
je 0x51e598
cmp al, 0x6d
je 0x51e598
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.00475fc0
add esp, 0xc
push 0x5a636c
push 0x29c7c
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.00475fc0
add esp, 0x14
mov byte [ebx + 0x61], 0xba
mov edi, 0x15
jmp 0x51e5d4
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0xc]
or eax, 0x100
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 0x10]
push 0
add eax, 4
mov dword [esp + 0x20], edx
push eax
push esi
call fcn.0048a000
add esp, 0x10
test eax, eax
je 0x51e1ab
cmp eax, 0xc0a
jne 0x51e198
mov eax, 7
mov ecx, eax
mov edx, eax
mov dword [esi + 0x40], ecx
mov ecx, esi
call fcn.00476840
jmp 0x51e0f5
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
cmp byte [ecx + 9], 0
je 0x51e1c5
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x51e1c5
call fcn.004880b0
mov edx, dword [esi + 0x10]
mov ecx, esi
mov edx, dword [edx + 4]
call fcn.004cb450
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0xc], eax
cmp byte [esi + 0x57], 0
jne 0x51e215
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x1ac]
push 0
mov edx, 0x599460
mov eax, dword [eax + 0xc]
mov bl, byte [eax + 0x4d]
mov byte [esi + 0x54], bl
call fcn.00478220
add esp, 4
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x51e212
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 0x51e22c
add dword [ecx + 0xc], 0xffffffff
jne 0x51e22c
call fcn.00488090
xor edx, edx
mov ecx, esi
call fcn.004cb450
mov ecx, dword [esi + 0x10]
mov ebx, esi
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [eax], 0x5a2894
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 0x51e0f5
cmp dword [esi + 0x124], 0
mov dword [esi + 0x40], 0
je 0x51e287
xor edx, edx
mov ecx, esi
call fcn.00476840
jmp 0x51e28e
mov dword [esi + 0x44], 0xffffffff
mov eax, dword [esi + 0xc]
test eax, eax
je 0x51e29f
push eax
call dword [0x5c5c70]
add esp, 4
push 0
push 1
push 2
mov edx, str.MATCH
mov ecx, esi
call fcn.004cb080
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov edi, eax
test ecx, ecx
je 0x51e2c7
push ecx
call dword [0x5c5c78]
add esp, 4
test edi, edi
jne 0x51e30c
push str.MATCH
call fcn.00475e10
add esp, 4
test eax, eax
je 0x51e303
push fcn.00473340
push edi
push edi
push edi
push edi
push 0x51c770
push eax
push 1
push 2
mov edx, str.MATCH
mov ecx, esi
call fcn.0051c4f0
add esp, 0x24
cmp eax, 7
jne 0x51e30c
push esi
call fcn.00473ac0
add esp, 4
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x51e359
cmp al, 0x76
je 0x51e359
cmp al, 0x6d
je 0x51e359
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.00475fc0
add esp, 0xc
push 0x5a636c
push 0x29c7c
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.00475fc0
add esp, 0x14
mov eax, 0x15
mov edi, esi
jmp 0x51e535
cmp byte [esi + 0x57], 0
jne 0x51e52e
mov eax, dword [esi + 0x48]
mov ecx, ebx
mov edi, ebx
and eax, dword [esi + 0x40]
jne 0x51e535
mov edi, 0x597d50
nop dword [eax + eax]
mov eax, ecx
mov edx, ebx
cmp edi, str.rank
jge 0x51e3a4
mov eax, dword [edi]
push esi
call eax
add esp, 4
add edi, 4
mov ecx, ebx
test eax, eax
je 0x51e380
mov edi, ecx
jmp 0x51e535
cmp dword [0x5d4a84], 0
mov edi, eax
je 0x51e4c8
xor ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
lea ebx, [ecx + 1]
cmp byte [0x5c5c24], 0
jne 0x51e3cd
xor edi, edi
jmp 0x51e3ec
push 2
call dword [0x5c5c68]
mov edi, eax
add esp, 4
test edi, edi
je 0x51e3e8
push edi
call dword [0x5c5c70]
add esp, 4
mov ecx, dword [esp + 0x10]
cmp ecx, dword [0x5d4a84]
jb 0x51e400
mov dword [esp + 0x1c], 0
xor ebx, ebx
jmp 0x51e40c
mov eax, dword [0x5d4a88]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
test edi, edi
je 0x51e41a
push edi
call dword [0x5c5c78]
add esp, 4
mov eax, dword [esp + 0x1c]
xor edi, edi
mov dword [esp + 0xc], edi
test eax, eax
je 0x51e455
push 0x5995e8
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
test eax, eax
je 0x51e451
push dword [esp + 0xc]
push str.automatic_extension_loading_failed:__s
push eax
push esi
call fcn.004768f0
add esp, 0x10
xor ebx, ebx
mov edi, dword [esp + 0xc]
test edi, edi
je 0x51e4b1
cmp dword [0x5c5c20], 0
je 0x51e4a7
mov eax, dword [0x5d4d18]
test eax, eax
je 0x51e475
push eax
call dword [0x5c5c70]
add esp, 4
push edi
call dword [0x5c5c4c]
sub dword [0x5d4b20], eax
add esp, 4
dec dword [0x5d4b44]
push edi
call dword [0x5c5c44]
mov eax, dword [0x5d4d18]
add esp, 4
test eax, eax
je 0x51e4b1
push eax
call dword [0x5c5c78]
jmp 0x51e4ae
push edi
call dword [0x5c5c44]
add esp, 4
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
test ebx, ebx
jne 0x51e3c0
mov edi, dword [esp + 0x14]
mov ebx, esi
mov al, byte [esi + 0x61]
mov ecx, edi
mov edx, ebx
cmp al, 0xba
je 0x51e512
cmp al, 0x76
je 0x51e512
cmp al, 0x6d
je 0x51e512
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.00475fc0
add esp, 0xc
push 0x5a636c
push 0x29c7c
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.00475fc0
add esp, 0x14
jmp 0x51e0f7
cmp byte [esi + 0x57], 0
mov ebx, edx
mov edi, ecx
jne 0x51e0f7
mov eax, dword [esi + 0x48]
and eax, dword [esi + 0x40]
jne 0x51e0f7
jmp 0x51e541
mov eax, 7
mov edi, ebx
mov edx, eax
mov dword [esi + 0x40], eax
mov ecx, esi
call fcn.00476840
push dword [0x5c5c38]
xor edx, edx
mov ecx, esi
push dword [0x5c5c34]
call fcn.0051b0b0
mov eax, dword [esi + 0xc]
add esp, 8
test eax, eax
je 0x51e56a
push eax
call dword [0x5c5c70]
add esp, 4
mov eax, dword [esi + 0xc]
mov dword [esi + 0x110], 0x51cb10
mov dword [esi + 0x114], 0x3e8
test eax, eax
je 0x51e0f7
push eax
call dword [0x5c5c78]
add esp, 4
jmp 0x51e0f7
cmp byte [esi + 0x57], 0
jne 0x51e5be
mov eax, dword [esi + 0x40]
mov ebx, edi
and eax, dword [esi + 0x48]
mov dword [esp + 0x14], eax
mov ecx, eax
cmp al, 7
je 0x51e5c5
mov edi, ecx
test ecx, ecx
je 0x51e5d4
mov byte [ebx + 0x61], 0xba
jmp 0x51e5d4
mov ebx, esi
mov edi, 7
jmp 0x51e5c9
mov edi, dword [esp + 0x14]
xor edx, edx
mov ecx, ebx
call fcn.0051b8f0
xor ebx, ebx
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x51e66a
cmp byte [eax - 1], 0
jne 0x51e601
cmp byte [eax - 2], 0
jne 0x51e601
cmp byte [eax - 3], 0
jne 0x51e601
cmp byte [eax - 4], 0
lea esi, [eax - 4]
je 0x51e604
dec eax
jmp 0x51e5e6
test esi, esi
je 0x51e66a
cmp dword [0x5c5c20], 0
je 0x51e660
mov eax, dword [0x5d4d18]
test eax, eax
je 0x51e624
push eax
call dword [0x5c5c70]
add esp, 4
push esi
call dword [0x5c5c4c]
sub dword [0x5d4b20], eax
add esp, 4
dec dword [0x5d4b44]
push esi
call dword [0x5c5c44]
mov eax, dword [0x5d4d18]
add esp, 4
test eax, eax
je 0x51e66a
push eax
call dword [0x5c5c78]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x5c5c44]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret