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

Disassembly:
mov ecx, dword [0x6cfe90]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5114c3
sub esp, 0x68
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x510f82
test eax, 0x200
jne 0x510f82
lea ecx, [0x5b6f68]
mov edx, dword [esp + 0x74]
jmp 0x510fa6
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0048bba0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov ecx, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + 0x28]
mov dword [esp], edx
call eax
mov eax, dword [esp + 4]
cmp dword [0x691480], eax
jne 0x51105e
mov ecx, dword [esp + 8]
mov edx, dword [0x691484]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00404ae0
movzx eax, byte [esp + 0xc]
test al, al
je 0x51105e
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0xc]
mov ebp, dword [edx + 8]
mov esi, dword [esp + 0x20]
mov dword [edx + 8], esi
mov esi, dword [0x6cff38]
test esi, esi
jne 0x51100a
mov esi, dword [esp + 0x40]
jmp 0x51101b
call fcn.00464ac0
mov esi, dword [esp + 0x40]
mov dword [edi], esi
mov eax, dword [edx + 0xc]
mov dword [edi + 4], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x2c], ebp
mov dword [edx + 0xc], esi
mov esi, dword [esp + 0x70]
mov edi, dword [esi + 0x28]
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
jmp 0x5110e3
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
lea eax, [0x5806c1]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x15
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
call fcn.0050cfe0
mov byte [esp + 0x80], 0
add esp, 0x68
ret
mov ebx, dword [esp + 0x30]
add ebx, 2
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x48]
mov ebx, dword [esp + 0x30]
cmp ebx, edi
jge 0x5113ec
mov ebp, dword [esi + 0x28]
cmp ebx, ebp
jae 0x5114b9
mov ebp, dword [esi + 0x24]
mov ebp, dword [ebp + ebx*4]
cmp dword [ebp], 8
jne 0x51117c
cmp dword [ebp + 0x1c], 2
jne 0x511178
mov edi, dword [ebp + 0x18]
cmp word [edi], 0x3c3c
jne 0x511170
movzx edi, byte [ebp + 0x20]
xchg edi, eax
test al, al
xchg edi, eax
je 0x511128
mov ebp, 1
jmp 0x51116a
cmp dword [ebp + 0x10], 0x17
je 0x511132
xor ebp, ebp
jmp 0x51116a
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
lea eax, [0x581431]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x17
call fcn.004030e0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x70]
mov ebp, eax
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x3c]
jmp 0x51117e
mov edi, dword [esp + 0x3c]
xor ebp, ebp
jmp 0x51117e
xor ebp, ebp
jmp 0x51117e
xor ebp, ebp
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5111c6
mov ebp, dword [esi + 0x28]
lea edi, [ebx + 1]
cmp ebp, edi
jbe 0x5114b0
mov ebp, dword [esi + 0x24]
mov ebp, dword [ebp + ebx*4 + 4]
mov dword [esp], edx
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.00512300
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
jmp 0x5110a8
lea eax, [0x561c20]
mov dword [esp], eax
call fcn.0040ca70
mov eax, dword [esp + 4]
mov dword [esp + 0x64], eax
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax + 0xc], 0
lea ecx, [0x54e5c0]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x51122a
movzx ebx, byte [edx + 0xf]
nop
mov ebp, ebx
and ebx, 0x1f
xchg ebp, eax
test al, 0x20
xchg ebp, eax
jne 0x511224
or ebx, 0x80
mov ebp, dword [esp + 0x60]
jmp 0x511230
xor ebx, ebx
xor edx, edx
xor ebp, ebp
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.004885f0
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x30]
cmp edx, ecx
jae 0x5114a9
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [eax + 0x24]
mov esi, dword [esi + edx*4]
mov edi, dword [esp + 0x6c]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.0050da50
movzx eax, byte [esp + 0x14]
test al, al
jne 0x51129b
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
jmp 0x5110a8
mov eax, dword [esp + 0x64]
lea ecx, [eax + 8]
lea edx, [0x54e5c0]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x5112d5
movzx ebx, byte [ecx + 0xf]
nop
mov ebp, ebx
and ebx, 0x1f
xchg ebp, eax
test al, 0x20
xchg ebp, eax
jne 0x5112cf
or ebx, 0x80
mov ebp, dword [esp + 0x58]
jmp 0x5112db
xor ebx, ebx
xor ecx, ecx
xor ebp, ebp
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.004885f0
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x30]
lea ebx, [edx + 1]
cmp ecx, ebx
jbe 0x5114a2
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [eax + 0x24]
mov esi, dword [esi + edx*4 + 4]
mov edi, dword [esp + 0x6c]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.0050da50
movzx eax, byte [esp + 0x14]
test al, al
je 0x5113db
mov edx, dword [esp + 0x24]
inc edx
mov ebx, dword [esp + 0x28]
cmp ebx, edx
jb 0x511352
mov eax, dword [esp + 0x44]
mov ecx, ebx
jmp 0x511384
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x561c20]
mov dword [esp + 0x10], eax
call fcn.0044b670
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x64]
mov ebp, dword [ebx]
mov esi, dword [ebx + 8]
lea edi, [edx - 1]
shl edi, 4
mov ecx, dword [ebx + 4]
mov ebx, dword [ebx + 0xc]
mov dword [eax + edi], ebp
mov dword [eax + edi + 8], esi
mov ebp, dword [0x6cff38]
test ebp, ebp
je 0x5113ca
mov ebp, edi
call fcn.00464ae0
mov dword [edi], ecx
mov esi, dword [eax + ebp + 4]
mov dword [edi + 4], esi
mov dword [edi + 8], ebx
mov esi, dword [eax + ebp + 0xc]
mov dword [edi + 0xc], esi
mov edi, ebp
mov dword [eax + edi + 4], ecx
mov dword [eax + edi + 0xc], ebx
mov ecx, dword [esp + 0x28]
jmp 0x5110a8
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
jmp 0x5110a8
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
call fcn.0040a380
mov eax, dword [esp + 0xc]
lea ecx, [0x552fc0]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x511439
movzx edx, byte [ecx + 0xf]
nop
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x51143f
or edx, 0x80
jmp 0x51143f
xor edx, edx
xor ecx, ecx
xor eax, eax
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.0048abe0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 8], eax
mov eax, dword [0x6cff38]
test eax, eax
jne 0x511482
mov eax, dword [esp + 0x48]
jmp 0x511493
call fcn.00464ac0
mov eax, dword [esp + 0x48]
mov dword [edi], eax
mov edx, dword [ecx + 0xc]
mov dword [edi + 4], edx
mov dword [ecx + 0xc], eax
mov byte [esp + 0x80], 1
add esp, 0x68
ret
mov eax, ebx
call fcn.00464b30
mov eax, edx
call fcn.00464b30
mov eax, edi
mov ecx, ebp
call fcn.00464b30
mov eax, ebx
mov ecx, ebp
call fcn.00464b30
nop
call fcn.004636b0
jmp fcn.00510f50