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

Disassembly:
mov ecx, dword [0x9aee30]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b0008
sub esp, 0x74
lea edi, [esp]
lea esi, [esp + 0x78]
call fcn.0046d00e
call fcn.004b0b90
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x44], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov byte [esp + 8], 1
call fcn.004b2100
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], 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.004a9310
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x14]
cmp eax, ecx
jae 0x4afb8d
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x692a40]
mov dword [esp + 0x10], eax
call fcn.004508b0
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 + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
call fcn.004a9310
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x14]
cmp eax, ecx
jae 0x4afbf1
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x692a40]
mov dword [esp + 0x10], eax
call fcn.004508b0
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 + 0x28]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
call fcn.004a9310
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x14]
cmp eax, ecx
jae 0x4afc55
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x692a40]
mov dword [esp + 0x10], eax
call fcn.004508b0
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 + 0x38]
mov dword [esp], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x15180
mov dword [esp + 0xc], 0
call fcn.004646c0
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 + 0x40], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 2
call fcn.004a9310
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x40]
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 + 0x34], edx
cmp ebp, ecx
jae 0x4afd4f
mov dword [esp + 0x30], eax
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x692a40]
mov dword [esp + 0x10], eax
call fcn.004508b0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [esp + 0x30]
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.004a9310
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x14]
cmp eax, ecx
jae 0x4afdaf
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x692a40]
mov dword [esp + 0x10], eax
call fcn.004508b0
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 + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
call fcn.004a9310
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx ebx, byte [esp + 0x98]
test bl, bl
je 0x4afe34
mov dword [esp + 0x4c], ecx
lea edi, [esp + 0x5c]
lea esi, [esp + 0x78]
call fcn.0046d00e
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.004a96b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x44]
test ebx, ebx
jne 0x4afe8d
inc ecx
cmp edx, ecx
jae 0x4afe6f
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x692a40]
mov dword [esp + 0x10], eax
call fcn.004508b0
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 0x4afef8
inc ecx
cmp esi, ecx
jae 0x4afeef
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, [0x692a40]
mov dword [esp + 0x10], eax
call fcn.004508b0
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 0x4aff3e
inc ecx
cmp esi, ecx
jae 0x4aff37
mov dword [esp + 0x48], edx
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x692a40]
mov dword [esp + 0x10], eax
call fcn.004508b0
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 + 0x48]
mov byte [ecx + ebp - 1], 0x2b
mov ebx, edx
mov dword [esp + 0x48], 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.004a9310
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
inc edx
mov ebx, dword [esp + 0x14]
cmp ecx, edx
jae 0x4affb5
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x692a40]
mov dword [esp + 0x10], eax
call fcn.004508b0
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 + 0x48]
sub ecx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 2
call fcn.004a9310
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.0046b490
jmp fcn.004afac0