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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
call fcn.004c8d00
test eax, eax
jne 0x46cfec
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
cmp byte [0x5320f4], bl
jne 0x46c878
xor ebp, ebp
jmp 0x46c898
test edi, 0x8000
je 0x46c884
xor ebp, ebp
jmp 0x46c898
mov ebp, 1
test edi, 0x10000
jne 0x46c898
movzx ebp, byte [0x5320f5]
test edi, 0x40000
je 0x46c8a8
and edi, 0xfffdffff
jmp 0x46c8b6
cmp dword [0x5321b8], ebx
je 0x46c8b6
or edi, 0x20000
push 0
and edi, 0xfff600e7
push 0x230
mov dword [esp + 0x38], edi
call fcn.0049b7f0
mov esi, eax
add esp, 8
test esi, esi
je 0x46cf3f
push 0x230
push 0
push esi
call fcn.004e7970
add esp, 0xc
mov dword [esp + 0x18], esi
test ebp, ebp
je 0x46c934
cmp byte [0x5320f4], bl
jne 0x46c90f
push esi
mov dword [esi + 0xc], ebx
call fcn.0043b060
add esp, 4
xor ebp, ebp
lea esi, [ebp + 7]
jmp 0x46cf4c
push 1
call dword [0x532138]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
jne 0x46c934
push esi
call fcn.0043b060
add esp, 4
xor ebp, ebp
lea esi, [ebp + 7]
jmp 0x46cf4c
mov eax, dword [esi + 0xc]
test eax, eax
je 0x46c945
push eax
call dword [0x532140]
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 [0x511d44]
push fcn.0044ad40
push 0
movups xmmword [esi + 0x78], xmm0
push 1
movups xmm0, xmmword [0x511d54]
push 0x512fbc
push esi
movups xmmword [esi + 0x88], xmm0
movups xmm0, xmmword [0x511d64]
mov byte [esi + 0x55], 1
mov byte [esi + 0x5a], 0xff
movups xmmword [esi + 0x98], xmm0
mov dword [esi + 0xa4], eax
mov eax, dword [0x532198]
mov ecx, dword [0x53219c]
or dword [esi + 0x20], 0xe00480e0
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xb8], 0x5322e4
mov dword [esi + 0x24], eax
mov dword [esi + 0x1b8], ebx
mov dword [esi + 0x1b4], ebx
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x1bc], ebx
mov dword [esi + 0x18c], ebx
mov dword [esi + 0x188], ebx
mov dword [esi + 0x184], ebx
mov dword [esi + 0x190], ebx
call fcn.004534c0
push 0
push fcn.0044ad40
push 0
push 3
push 0x512fbc
push esi
call fcn.004534c0
push 0
push fcn.0044ad40
push 0
push 2
push 0x512fbc
push esi
call fcn.004534c0
add esp, 0x48
push 0
push 0x46c6b0
push 0
push 1
push str.NOCASE
push esi
call fcn.004534c0
push 0
push 0x477bb0
push 0
push 1
push str.RTRIM
push esi
call fcn.004534c0
add esp, 0x30
mov ebp, esi
cmp byte [esi + 0x57], bl
jne 0x46cd76
mov ecx, edi
mov dword [esi + 0x3c], edi
and ecx, 7
mov eax, 1
shl eax, cl
test al, 0x46
jne 0x46cab5
push 0x2c543
call fcn.0049bf00
add esp, 4
jmp 0x46cae1
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.0049e3b0
mov ebx, dword [esp + 0x2c]
add esp, 0x18
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
test eax, eax
je 0x46cb82
cmp eax, 7
jne 0x46cafb
push esi
call fcn.0049c250
add esp, 4
mov ebp, dword [esp + 0x10]
xor ecx, ecx
test ebp, ebp
mov eax, 0x51956c
push ebp
cmove eax, ecx
push eax
push dword [esp + 0x24]
push esi
call fcn.00489ef0
add esp, 0x10
test ebp, ebp
je 0x46cb7b
cmp dword [0x5320f0], 0
je 0x46cb71
mov eax, dword [0x536de8]
test eax, eax
je 0x46cb3a
push eax
call dword [0x532140]
add esp, 4
push ebp
call dword [0x53211c]
sub dword [0x536d88], eax
dec dword [0x536dac]
push ebp
call dword [0x532114]
mov eax, dword [0x536de8]
add esp, 8
test eax, eax
je 0x46cb7b
push eax
call dword [0x532148]
add esp, 4
mov ebp, esi
jmp 0x46cd76
push ebp
call dword [0x532114]
add esp, 4
mov ebp, esi
jmp 0x46cd76
mov eax, dword [esi + 0x10]
or edi, 0x100
push edi
push 0
add eax, 4
push eax
push esi
push ebx
push dword [esi]
call fcn.004811f0
add esp, 0x18
test eax, eax
je 0x46cbbe
cmp eax, 0xc0a
mov ecx, 7
cmove eax, ecx
push eax
push esi
call fcn.00489dc0
add esp, 8
jmp 0x46cd76
mov eax, dword [esi + 0x10]
push dword [eax + 4]
call fcn.0047ff70
mov eax, dword [esi + 0x10]
push dword [eax + 4]
push esi
call fcn.004a7060
mov ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [ecx + 0xc], eax
cmp byte [esi + 0x57], 0
jne 0x46cbf8
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
movzx eax, byte [eax + 0x4d]
push eax
push esi
call fcn.004aaa20
add esp, 8
mov eax, dword [esi + 0x10]
push dword [eax + 4]
call fcn.00481130
push 0
push esi
call fcn.004a7060
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 0x46cd76
cmp dword [esi + 0x124], 0
mov dword [esi + 0x40], 0
je 0x46cc60
push 0
push esi
call fcn.00489df0
add esp, 8
jmp 0x46cc67
mov dword [esi + 0x44], 0xffffffff
mov eax, dword [esi + 0xc]
test eax, eax
je 0x46cc78
push eax
call dword [0x532140]
add esp, 4
push 0
push 1
push 2
push str.MATCH
push esi
call fcn.0048fed0
add esp, 0x14
neg eax
sbb edi, edi
mov eax, dword [esi + 0xc]
neg edi
test eax, eax
je 0x46cca3
push eax
call dword [0x532148]
add esp, 4
test edi, edi
jne 0x46ccec
push str.MATCH
push 0x51956c
call fcn.0043ac50
add esp, 8
test eax, eax
je 0x46cce3
push fcn.0043b060
push edi
push edi
push edi
push edi
push 0x499bf0
push eax
push 1
push 2
push str.MATCH
push esi
call fcn.00453650
add esp, 0x2c
cmp eax, 7
jne 0x46ccec
push esi
call fcn.0049c250
add esp, 4
push esi
call fcn.0043c200
add esp, 4
test eax, eax
jne 0x46cd1f
mov edi, 0x516dc4
nop
mov eax, esi
mov edx, ebp
cmp edi, 0x516dcc
jge 0x46cddf
mov eax, dword [edi]
push esi
call eax
add esp, 4
add edi, 4
test eax, eax
je 0x46cd00
push eax
push esi
call fcn.00489dc0
add esp, 8
push dword [0x532108]
push dword [0x532104]
push 0
push esi
call fcn.0047a150
mov eax, dword [esi + 0xc]
add esp, 0x10
test eax, eax
je 0x46cd54
push eax
call dword [0x532140]
mov eax, dword [esi + 0xc]
add esp, 4
mov dword [esi + 0x110], 0x4bf880
mov dword [esi + 0x114], 0x3e8
test eax, eax
je 0x46cd76
push eax
call dword [0x532148]
add esp, 4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x46cd87
push eax
call dword [0x532148]
add esp, 4
mov al, byte [esi + 0x61]
cmp al, 0xba
je 0x46cf19
cmp al, 0x76
je 0x46cf19
cmp al, 0x6d
je 0x46cf19
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.00444580
push 0x51e124
push 0x2c26a
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.00444580
add esp, 0x20
mov byte [ebp + 0x61], 0xba
mov esi, 0x15
jmp 0x46cf59
cmp dword [0x536fd4], 0
mov dword [esp + 0x18], eax
je 0x46cf03
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
lea ebx, [ecx + 1]
nop dword [eax]
cmp byte [0x5320f4], 0
jne 0x46ce0d
xor edi, edi
jmp 0x46ce2c
push 2
call dword [0x532138]
mov edi, eax
add esp, 4
test edi, edi
je 0x46ce28
push edi
call dword [0x532140]
add esp, 4
mov ecx, dword [esp + 0x14]
cmp ecx, dword [0x536fd4]
jb 0x46ce40
mov dword [esp + 0x1c], 0
xor ebx, ebx
jmp 0x46ce4c
mov eax, dword [0x536fd8]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
test edi, edi
je 0x46ce5a
push edi
call dword [0x532148]
add esp, 4
mov eax, dword [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x10], edi
test eax, eax
je 0x46ce95
push 0x511df0
lea ecx, [esp + 0x14]
push ecx
push esi
call eax
add esp, 0xc
test eax, eax
je 0x46ce91
push dword [esp + 0x10]
push str.automatic_extension_loading_failed:__s
push eax
push esi
call fcn.00489ef0
add esp, 0x10
xor ebx, ebx
mov edi, dword [esp + 0x10]
test edi, edi
je 0x46ceee
cmp dword [0x5320f0], 0
je 0x46cee4
mov eax, dword [0x536de8]
test eax, eax
je 0x46ceb5
push eax
call dword [0x532140]
add esp, 4
push edi
call dword [0x53211c]
sub dword [0x536d88], eax
dec dword [0x536dac]
push edi
call dword [0x532114]
mov eax, dword [0x536de8]
add esp, 8
test eax, eax
je 0x46ceee
push eax
call dword [0x532148]
jmp 0x46ceeb
push edi
call dword [0x532114]
add esp, 4
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
test ebx, ebx
jne 0x46ce00
mov ebx, dword [esp + 0x20]
push esi
call fcn.0043c200
add esp, 4
test eax, eax
jne 0x46cd76
jmp 0x46cd29
cmp byte [esi + 0x57], 0
jne 0x46cf41
mov eax, dword [esi + 0x40]
and eax, dword [esi + 0x48]
mov ebp, dword [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x20], eax
cmp al, 7
je 0x46cf48
mov esi, ecx
test ecx, ecx
je 0x46cf59
mov byte [ebp + 0x61], 0xba
jmp 0x46cf59
mov ebp, esi
mov esi, 7
jmp 0x46cf4c
mov esi, dword [esp + 0x20]
push 0
push ebp
call fcn.004831f0
add esp, 8
xor ebp, ebp
mov eax, dword [esp + 0x2c]
mov dword [eax], ebp
test ebx, ebx
je 0x46cfe7
cmp byte [ebx - 1], 0
jne 0x46cf7f
cmp byte [ebx - 2], 0
jne 0x46cf7f
cmp byte [ebx - 3], 0
jne 0x46cf7f
cmp byte [ebx - 4], 0
je 0x46cf82
dec ebx
jmp 0x46cf67
add ebx, 0xfffffffc
je 0x46cfe7
cmp dword [0x5320f0], 0
je 0x46cfdd
mov eax, dword [0x536de8]
test eax, eax
je 0x46cfa3
push eax
call dword [0x532140]
add esp, 4
push ebx
call dword [0x53211c]
sub dword [0x536d88], eax
dec dword [0x536dac]
push ebx
call dword [0x532114]
mov eax, dword [0x536de8]
add esp, 8
test eax, eax
je 0x46cfe7
push eax
call dword [0x532148]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push ebx
call dword [0x532114]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret