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

Disassembly:
mov ecx, dword [0x82b814]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x510528
sub esp, 0x74
lea edi, [esp]
lea esi, [esp + 0x78]
call fcn.0046c08e
call fcn.00511260
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov byte [esp + 8], 1
call fcn.005127d0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x8c]
mov dword [esp], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 8], edx
mov dword [esp + 0x10], 4
call fcn.005097d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x14]
cmp eax, ecx
jae 0x5100ad
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x630a60]
mov dword [esp + 0x10], eax
call fcn.00450140
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov byte [ecx + edx - 1], 0x2d
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
call fcn.005097d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x14]
cmp eax, ecx
jae 0x510111
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x630a60]
mov dword [esp + 0x10], eax
call fcn.00450140
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov byte [ecx + edx - 1], 0x2d
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
call fcn.005097d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x14]
cmp eax, ecx
jae 0x510175
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x630a60]
mov dword [esp + 0x10], eax
call fcn.00450140
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], eax
mov byte [ecx + edx - 1], 0x54
nop
mov ebx, dword [esp + 0x44]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x15180
mov dword [esp + 0xc], 0
call fcn.00463a50
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
mov ecx, 0x91a2b3c5
imul ecx
mov eax, dword [esp + 0x50]
lea ecx, [eax + edx]
sar ecx, 0xb
sar eax, 0x1f
sub ecx, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 2
call fcn.005097d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x3c]
imul edx, edx, 0xe10
mov ebx, dword [esp + 0x50]
sub ebx, edx
mov edx, eax
mov eax, 0x88888889
mov ebp, edx
imul ebx
lea eax, [ebx + edx]
sar eax, 5
mov edx, ebx
sar ebx, 0x1f
sub eax, ebx
imul ebx, eax, 0x3c
mov esi, dword [esp + 0x14]
sub edx, ebx
mov dword [esp + 0x2c], edx
cmp ebp, ecx
jae 0x51026f
mov dword [esp + 0x38], eax
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x630a60]
mov dword [esp + 0x10], eax
call fcn.00450140
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [esp + 0x38]
mov byte [ecx + esi - 1], 0x3a
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
call fcn.005097d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x14]
cmp eax, ecx
jae 0x5102cf
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x630a60]
mov dword [esp + 0x10], eax
call fcn.00450140
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov byte [ecx + edx - 1], 0x3a
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
call fcn.005097d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx ebx, byte [esp + 0x98]
test bl, bl
je 0x510354
mov dword [esp + 0x4c], ecx
lea edi, [esp + 0x5c]
lea esi, [esp + 0x78]
call fcn.0046c08e
mov ecx, dword [esp + 0x5c]
and ecx, 0x3fffffff
nop
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0x90023
call fcn.00509b70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
test ebx, ebx
jne 0x5103ad
inc ecx
cmp edx, ecx
jae 0x51038f
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x630a60]
mov dword [esp + 0x10], eax
call fcn.00450140
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov byte [ecx + eax - 1], 0x5a
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
add esp, 0x74
ret
mov ebp, eax
mov eax, 0x88888889
mov esi, edx
imul ebx
add edx, ebx
sar edx, 5
sar ebx, 0x1f
mov edi, edx
sub edx, ebx
test edx, edx
jge 0x510418
inc ecx
cmp esi, ecx
jae 0x51040f
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], edi
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x630a60]
mov dword [esp + 0x10], eax
call fcn.00450140
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov ebp, eax
mov esi, edx
mov byte [ecx + ebp - 1], 0x2d
sub ebx, edi
jmp 0x51045e
inc ecx
cmp esi, ecx
jae 0x510457
mov dword [esp + 0x28], edx
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x630a60]
mov dword [esp + 0x10], eax
call fcn.00450140
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebp, eax
mov esi, edx
mov edx, dword [esp + 0x28]
mov byte [ecx + ebp - 1], 0x2b
mov ebx, edx
mov dword [esp + 0x28], ebx
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov eax, ebx
mov ecx, 0x88888889
imul ecx
lea ecx, [edx + ebx]
sar ecx, 5
sar ebx, 0x1f
sub ecx, ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 2
call fcn.005097d0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
inc edx
mov ebx, dword [esp + 0x14]
cmp ecx, edx
jae 0x5104d5
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x630a60]
mov dword [esp + 0x10], eax
call fcn.00450140
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov byte [edx + ebx - 1], 0x3a
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x58]
imul eax, eax, 0x3c
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 2
call fcn.005097d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
add esp, 0x74
ret
call fcn.0046a530
jmp fcn.0050ffe0