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

Disassembly:
mov ecx, dword [0x90eeac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x494a78
sub esp, 0x74
lea edi, [esp]
lea esi, [esp + 0x78]
call fcn.00471bde
call fcn.00495520
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.0049b9b0
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.0048db90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x14]
cmp eax, ecx
jae 0x4945fd
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x676660]
mov dword [esp + 0x10], eax
call fcn.0046c350
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.0048db90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x14]
cmp eax, ecx
jae 0x494661
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x676660]
mov dword [esp + 0x10], eax
call fcn.0046c350
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.0048db90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x14]
cmp eax, ecx
jae 0x4946c5
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x676660]
mov dword [esp + 0x10], eax
call fcn.0046c350
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.004629b0
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.0048db90
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 0x4947bf
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, [0x676660]
mov dword [esp + 0x10], eax
call fcn.0046c350
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.0048db90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x14]
cmp eax, ecx
jae 0x49481f
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x676660]
mov dword [esp + 0x10], eax
call fcn.0046c350
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.0048db90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx ebx, byte [esp + 0x98]
test bl, bl
je 0x4948a4
mov dword [esp + 0x4c], ecx
lea edi, [esp + 0x5c]
lea esi, [esp + 0x78]
call fcn.00471bde
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.0048df30
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
test ebx, ebx
jne 0x4948fd
inc ecx
cmp edx, ecx
jae 0x4948df
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x676660]
mov dword [esp + 0x10], eax
call fcn.0046c350
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 0x494968
inc ecx
cmp esi, ecx
jae 0x49495f
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, [0x676660]
mov dword [esp + 0x10], eax
call fcn.0046c350
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 0x4949ae
inc ecx
cmp esi, ecx
jae 0x4949a7
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, [0x676660]
mov dword [esp + 0x10], eax
call fcn.0046c350
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.0048db90
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
inc edx
mov ebx, dword [esp + 0x14]
cmp ecx, edx
jae 0x494a25
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x676660]
mov dword [esp + 0x10], eax
call fcn.0046c350
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.0048db90
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.00470060
jmp fcn.00494530