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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x633310
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x652018]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x652018]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x94]
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x5c], eax
mov byte [esp + 0x14], al
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
test ecx, ecx
je 0x518a0b
mov eax, dword [ecx]
jmp 0x518a0d
xor eax, eax
mov dword [esp + 0x64], 0x41eec8
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov byte [esp + 0x70], 0
mov dword [esp + 0x64], 0x41bbec
mov dword [esp + 0xb8], 0
mov eax, dword [ecx]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0x41bbec
mov byte [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [ecx], eax
mov dword [esp + 0xb8], 1
mov ecx, ebx
push esi
call fcn.0051281a
test al, al
je 0x518a7a
test byte [esi + 2], 1
jne 0x518a7a
mov eax, dword [esi + 0x28]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push 0
push 0
push 0
push 0
push 0x10
push dword [eax + 0x58]
call fcn.0045436a
test byte [eax + 2], 1
je 0x518ab8
mov ecx, dword [ebx + 0x13c]
test ecx, ecx
je 0x518aa9
mov ecx, dword [ecx + 0x28]
test ecx, ecx
jne 0x518ab3
mov ecx, dword [ebx + 0x138]
test ecx, ecx
je 0x518ab8
or word [ecx + 2], 1
test byte [esi + 2], 1
mov dword [esp + 0x18], eax
jne 0x519526
test byte [eax + 2], 1
jne 0x519526
cmp byte [esp + 0x78], 0
jne 0x519526
cmp byte [esp + 0x70], 0
jne 0x518af5
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x64]
call dword [eax]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, ebx
call fcn.0051871a
mov dword [esp + 0x18], eax
test eax, eax
je 0x519526
cmp word [esi], 0x5c
jne 0x518c94
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x24], ecx
movzx eax, byte [ecx]
test byte [eax + eax*2 + 0x405210], 0x80
je 0x518c94
mov eax, dword [ebp + 0x10]
cmp dword [ecx + 0x14], eax
jne 0x518c94
mov dword [esp + 0x4c], 0x425838
mov byte [esp + 0xb8], 2
mov dword [esp + 0x4c], 0x42b2d0
mov word [esp + 0x58], 0
mov byte [esp + 0xb8], 3
lea eax, [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x54]
call fcn.0052b2ca
test al, al
je 0x518c84
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x50]
call 0x3dc92a
mov ecx, dword [ebx + 0x210]
push 7
mov dword [esp + 0x40], eax
call fcn.0040301a
mov ecx, eax
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
test ecx, ecx
jne 0x518bcc
push eax
push 0x65e308
push 0x2c
mov ecx, ebx
call fcn.0042862a
mov ecx, eax
or word [ecx + 2], 1
jmp 0x518c14
push 0x24
lea ecx, [ebx + 0x24]
call fcn.0053ac4a
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, 0x54
mov dword [esp + 0x2c], ecx
mov word [ecx], ax
mov eax, dword [edx]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
mov dword [ecx + 8], eax
mov eax, dword [edx + 8]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x1c], eax
mov ecx, eax
call 0x3db1ea
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0x14], eax
push 0
push 0
lea eax, [esp + 0x1d]
mov byte [esp + 0x1e], 0
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x23], 0
push eax
push 0
lea eax, [esp + 0x2b]
mov dword [esp + 0x40], 0
push eax
lea eax, [esp + 0x2e]
mov byte [esp + 0x2d], 0
push eax
push 0
push 0
push 0
push dword [esp + 0x64]
push ecx
mov ecx, ebx
call fcn.0046d6da
push dword [ebx + 0x10c]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, ebx
call fcn.00480fca
push dword [esp + 0x20]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x50]
push dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
call fcn.0052b27a
mov byte [esp + 0xb8], 1
mov dword [esp + 0x4c], 0x425838
push dword [esp + 0x1c]
mov ecx, ebx
push esi
call fcn.00519aea
test al, al
je 0x519526
cmp byte [ebx + 0x99], 0
jne 0x518cc6
mov ecx, ebx
call fcn.005127fa
test al, al
je 0x518cc6
push esi
push dword [esp + 0x20]
call fcn.00515d4a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
call 0x3db1ea
mov ecx, dword [esp + 0x18]
cmp eax, 0x14
jne 0x518d3c
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x3c], eax
cmp dword [eax + 0xc], 1
jne 0x518d3c
cmp byte [ebx + 0x99], 0
je 0x518d1f
push esi
mov ecx, ebx
call fcn.0051281a
test al, al
je 0x518d1f
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0x5c]
shr eax, 4
test al, 1
jne 0x518d1f
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 8]
call 0x3dc92a
push eax
push esi
mov ecx, ebx
call fcn.00512f3a
mov eax, dword [esp + 0x30]
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push esi
push dword [esp + 0x24]
push dword [esp + 0x2c]
call fcn.005176ca
jmp 0x519526
mov ecx, dword [ecx + 0x1c]
call 0x3db1ea
cmp eax, 0x11
jne 0x518d9c
cmp byte [ebx + 0x99], 0
je 0x518d7f
push esi
mov ecx, ebx
call fcn.0051281a
test al, al
je 0x518d7f
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0x5c]
shr eax, 4
test al, 1
jne 0x518d7f
mov eax, dword [ebx + 0x210]
mov ecx, ebx
push dword [eax + 0x9c4]
push esi
call fcn.00512f3a
mov eax, dword [esp + 0x30]
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push esi
push dword [esp + 0x24]
push dword [esp + 0x2c]
call fcn.00517eea
jmp 0x519526
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x1c]
call 0x3e942a
test al, al
je 0x518ebf
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
push dword [eax + 0x10]
lea eax, [ecx + 0x220]
push eax
lea ecx, [esp + 0x54]
call fcn.00402cea
cmp dword [esp + 0x4c], 1
jne 0x518e25
mov ecx, dword [esp + 0x50]
call 0x3da5aa
cmp eax, 6
jne 0x518e25
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
push dword [eax + 0x10]
lea eax, [ecx + 0x220]
push eax
lea ecx, [esp + 0x54]
call fcn.00402cea
mov edi, dword [esp + 0x4c]
mov ecx, ebx
push dword [ebx + 0x10c]
mov eax, dword [esp + 0x20]
dec edi
neg edi
sbb edi, edi
add eax, 4
not edi
and edi, dword [esp + 0x54]
push eax
push edi
call 0x480f1a
jmp 0x518fa9
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x58]
add edi, 0xc
cmp byte [ebx + 0x88], 0
je 0x518eb3
mov eax, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x210]
mov dword [esp + 0x24], eax
test eax, eax
je 0x518eb3
mov eax, dword [esi]
lea ecx, [esp + 0x4c]
push dword [eax + 0x10]
lea eax, [esi + 0x220]
push eax
call fcn.00402cea
cmp dword [esp + 0x4c], 0
mov ecx, esi
push 0x1b
jne 0x518e8d
call fcn.0040179a
push eax
push edi
push 0x7532
push dword [esp + 0x30]
call 0x3cd1da
add esp, 0x10
mov ecx, ebx
call fcn.0042854a
jmp 0x519526
call fcn.0040174a
push eax
push ecx
push 0x1b
mov ecx, esi
call fcn.004013fa
add esp, 4
push eax
push edi
push 0x7760
push dword [esp + 0x34]
call 0x3cd1da
add esp, 0x14
mov ecx, ebx
call fcn.0042854a
jmp 0x519526
cmp byte [esp + 0x14], 0
je 0x518fad
lea edi, [ebx + 4]
push edi
lea ecx, [esp + 0x50]
call 0x3cfd5a
mov byte [esp + 0xb8], 5
lea esi, [ebx + 8]
push esi
lea ecx, [esp + 0x9c]
call 0x3cfd5a
mov byte [esp + 0xb8], 6
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c]
mov dword [edi], eax
lea eax, [edx + 4]
mov dword [esi], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x308]
mov eax, dword [esp + 0x1c]
push ecx
push 0
push 0x10
mov eax, dword [eax + 0x58]
add eax, 0xc
push eax
push ecx
push ecx
push edx
mov ecx, ebx
call fcn.00458f7a
test byte [eax + 2], 1
je 0x518f62
mov ecx, ebx
call fcn.0042854a
mov byte [esp + 0xb8], 5
lea ecx, [esp + 0x98]
call 0x3cfd8a
mov byte [esp + 0xb8], 1
lea ecx, [esp + 0x4c]
call 0x3cfd8a
jmp 0x519526
push dword [ebx + 0x10c]
mov edi, dword [eax + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, ebx
call fcn.00480fca
mov dword [esp + 0x5c], eax
mov byte [esp + 0xb8], 5
lea ecx, [esp + 0x98]
call 0x3cfd8a
mov byte [esp + 0xb8], 1
lea ecx, [esp + 0x4c]
call 0x3cfd8a
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x38], eax
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x50]
call 0x3cfd5a
mov byte [esp + 0xb8], 7
lea eax, [ebx + 8]
push eax
lea ecx, [esp + 0x9c]
call 0x3cfd5a
mov byte [esp + 0xb8], 8
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [ebx + 4], edi
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x2f4]
mov eax, dword [esp + 0x1c]
push ecx
push 0
push 0x10
mov eax, dword [eax + 0x58]
add eax, 0xc
push eax
push ecx
push ecx
push 0
push eax
push 0
push edi
push dword [esp + 0x60]
mov ecx, ebx
call fcn.004733ba
push eax
mov ecx, ebx
call fcn.00458f7a
mov dword [esp + 0x3c], eax
mov byte [esp + 0xb8], 7
lea ecx, [esp + 0x98]
call 0x3cfd8a
mov byte [esp + 0xb8], 1
lea ecx, [esp + 0x4c]
call 0x3cfd8a
mov ecx, dword [esp + 0x3c]
test byte [ecx + 2], 1
je 0x51905d
mov ecx, ebx
call fcn.0042854a
jmp 0x519526
mov eax, dword [ebx + 0x210]
lea edx, [esp + 0x16]
push 0
push 0
push edx
lea edx, [esp + 0x48]
mov byte [esp + 0x20], 0
push edx
push 0
lea edx, [esp + 0x2b]
mov byte [esp + 0x2b], 0
push edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x54], 0
push edx
push 0
push 0
push 0
push dword [eax + 0x928]
mov byte [esp + 0x42], 0
push ecx
mov ecx, ebx
call fcn.0046d6da
mov dword [esp + 0x4c], eax
test byte [eax + 2], 1
jne 0x519526
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x40]
call 0x3cfd5a
mov byte [esp + 0xb8], 9
lea eax, [ebx + 8]
push eax
lea ecx, [esp + 0x9c]
call 0x3cfd5a
mov byte [esp + 0xb8], 0xa
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [ebx + 4], edi
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x2f8]
mov eax, dword [esp + 0x1c]
push ecx
push 0
push 0x10
mov eax, dword [eax + 0x58]
add eax, 0xc
push eax
push ecx
push ecx
push 0
push eax
push 0
push edi
push dword [esp + 0x60]
mov ecx, ebx
call fcn.004733ba
push eax
mov ecx, ebx
call fcn.00458f7a
mov dword [esp + 0x20], eax
mov byte [esp + 0xb8], 9
lea ecx, [esp + 0x98]
call 0x3cfd8a
mov byte [esp + 0xb8], 1
lea ecx, [esp + 0x3c]
call 0x3cfd8a
mov eax, dword [esp + 0x20]
test byte [eax + 2], 1
je 0x519166
mov ecx, ebx
call fcn.0042854a
jmp 0x519526
cmp byte [ebx + 0x99], 0
je 0x5191c9
push esi
mov ecx, ebx
call fcn.0051281a
test al, al
je 0x5191c5
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0x5c]
shr eax, 4
test al, 1
jne 0x5191c5
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
call 0x3db1ea
cmp eax, 0x14
jne 0x5191b9
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
cmp dword [ecx + 0xc], 1
jbe 0x5191b9
mov ecx, dword [ecx + 8]
call 0x3dc92a
push eax
push esi
mov ecx, ebx
call fcn.00512f3a
jmp 0x5191c5
push dword [esp + 0x20]
mov ecx, ebx
push esi
call fcn.00512eea
mov eax, dword [esp + 0x20]
push 0
push 0
lea ecx, [esp + 0x1e]
mov byte [esp + 0x1c], 0
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x23], 0
push ecx
push 0
lea ecx, [esp + 0x2b]
mov dword [esp + 0x50], 0
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2e], 0
push ecx
push 0
push 0
push 0x40000
push dword [esi + 0x1c]
mov ecx, ebx
push eax
call fcn.0046d6da
mov dword [esp + 0x24], eax
test byte [eax + 2], 1
jne 0x519290
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x1c]
call 0x3db1ea
cmp eax, 0x14
jne 0x519290
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
call 0x3dd23a
push 0
push 0
push 0
push 0
push 1
lea ecx, [esp + 0x29]
mov dword [esp + 0x3c], eax
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x4c], 0
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0
push ecx
push eax
push dword [esi + 0x1c]
mov ecx, ebx
call fcn.0048ab8a
cmp eax, 3
jne 0x519290
push dword [esi + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, ebx
push dword [esp + 0x2c]
mov eax, dword [eax + 0x58]
add eax, 0xc
push eax
push 0x7667
call fcn.0042216a
lea eax, [esi + 4]
mov ecx, ebx
push eax
push dword [esp + 0x28]
push esi
push 0x65e308
push 0x53
call fcn.004731ba
mov edx, dword [ebx + 0x210]
mov dword [esp + 0x2c], eax
mov ecx, dword [edx]
push dword [ecx + 0x10]
lea ecx, [edx + 0x220]
push ecx
lea ecx, [esp + 0x44]
call fcn.00402cea
mov ecx, dword [ebx + 0x210]
mov esi, dword [esp + 0x3c]
dec esi
neg esi
mov eax, dword [ecx]
sbb esi, esi
not esi
and esi, dword [esp + 0x40]
push dword [eax + 0x10]
lea eax, [ecx + 0x130]
push eax
lea ecx, [esp + 0x44]
call fcn.00402cea
mov eax, dword [esp + 0x3c]
dec eax
mov byte [esp + 0x15], 0
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
call 0x3db1ea
cmp eax, 0x14
je 0x519336
push dword [esp + 0x3c]
mov ecx, ebx
push edi
call 0x41e47a
test al, al
jne 0x519331
mov byte [esp + 0x15], al
cmp edi, esi
jne 0x519336
mov byte [esp + 0x15], 1
lea eax, [esp + 0x84]
mov byte [esp + 0x14], 0
push eax
call fcn.004346fa
cmp byte [esp + 0x15], 0
mov dword [esp + 0x28], 0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0xa4], eax
je 0x51942c
cmp byte [ebx + 0x103], 0
jne 0x51942c
push 0x74
lea ecx, [ebx + 0x24]
mov byte [esp + 0x18], 1
call fcn.0053ac4a
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, 7
mov dword [esp + 0x28], ecx
mov word [ecx], ax
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], esi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], eax
mov eax, 0xfffe
mov word [ecx + 0x20], ax
mov eax, dword [ebx + 0x1d8]
mov dword [ecx + 0x24], eax
mov eax, dword [ebx + 0x12c]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0
mov eax, dword [ebx + 0x10c]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebx + 0x128]
mov dword [eax], ecx
lea eax, [ecx + 0x28]
mov dword [ebx + 0x128], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x10c], ecx
mov dword [ebx + 0x12c], 0
mov dword [ecx + 0x2c], esi
mov dword [ecx + 0x30], edi
mov dword [ecx + 0x34], edx
mov dword [ecx + 0x38], eax
mov esi, dword [esp + 0x1c]
mov ecx, ebx
push 1
push esi
push 0xb
call fcn.005217ba
mov edi, eax
mov eax, dword [ebp + 0x10]
push 0
push 0
push dword [esp + 0x68]
mov dword [edi + 0x3c], eax
mov cx, word [esi + 0x54]
mov eax, dword [esp + 0x3c]
mov word [edi + 0x68], cx
lea ecx, [ebx + 0x24]
mov dword [edi + 0x8c], eax
call 0x53aeea
push 0
push 4
mov dword [edi + 0x88], eax
lea ecx, [ebx + 0x24]
push dword [esp + 0x20]
call 0x53aeea
mov dword [edi + 0x90], eax
mov ecx, ebx
mov eax, dword [esp + 0x5c]
mov dword [edi + 0x7c], eax
mov eax, 0x2000
or word [edi + 2], ax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x78], eax
mov eax, dword [esp + 0x2c]
push esi
mov dword [edi + 0x84], eax
call fcn.0051094a
cmp byte [esp + 0x15], 0
je 0x519526
cmp byte [esp + 0x14], 0
je 0x519507
mov ecx, ebx
call fcn.005218da
push ecx
lea eax, [esp + 0x9c]
push eax
push dword [esp + 0x30]
call fcn.0052184a
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x12c], 0
lea ecx, [eax + 0x28]
mov dword [ebx + 0x128], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x34], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x38], ecx
push 1
lea eax, [esi + 4]
mov ecx, ebx
push eax
push dword [esp + 0x40]
call fcn.0051957a
cmp byte [esp + 0x14], 0
je 0x519526
mov ecx, ebx
call fcn.005218da
mov dword [esp + 0xb8], 0xffffffff
cmp byte [esp + 0x70], 0
mov dword [esp + 0x64], 0x41bbec
jne 0x51954f
lea ecx, [esp + 0x64]
call dword [0x41bbec]
mov byte [esp + 0x70], 1
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call 0x59f19b
mov esp, ebp
pop ebp
ret 0xc