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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x40]
cmp eax, dword [ecx + 8]
jbe 0x4e5450
sub esp, 0xc0
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 8], eax
call fcn.004dc410
mov eax, dword [esp + 0x10]
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xbc], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x94], edx
mov ebx, dword [esp + 0xdc]
mov dword [esp], ebx
mov ebx, dword [esp + 0xe0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xe4]
mov dword [esp + 8], ebx
call fcn.004dc410
mov eax, dword [esp + 0x98]
test eax, eax
je 0x4e4966
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
cmp ecx, 0x64
jl 0x4e4914
sub eax, ecx
test eax, eax
jl 0x4e490d
mov dword [esp + 0x68], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0xb8], edx
mov esi, dword [esp + 0xe8]
mov edi, dword [esp + 0xf0]
mov edx, dword [edi + esi*4]
shr ecx, 1
mov dword [esp + 0x74], ecx
test edx, edx
je 0x4e48b7
mov eax, dword [edx]
mov ebx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
lea eax, [ecx + 1]
mov dword [esp + 0xc], eax
call fcn.004dc450
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xf0]
mov edx, dword [ecx + eax*4]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov dword [edx + 4], ebx
mov dword [edx + 8], ebp
mov ebx, dword [0x8c88d8]
test ebx, ebx
je 0x4e48b3
call fcn.004772f0
mov dword [edi], esi
mov ebx, dword [edx]
mov dword [edi + 4], ebx
mov dword [edx], esi
jmp 0x4e4904
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
call fcn.004debf0
mov eax, dword [0x8c88d8]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x4e48e4
mov eax, dword [esp + 0xe8]
mov edx, dword [esp + 0xf0]
jmp 0x4e48ff
call fcn.004772f0
mov dword [edi], ecx
mov eax, dword [esp + 0xe8]
mov edx, dword [esp + 0xf0]
mov ebx, dword [edx + eax*4]
mov dword [edi + 4], ebx
mov dword [edx + eax*4], ecx
mov ecx, edx
mov edx, dword [esp + 0x68]
jmp 0x4e49ee
add esp, 0xc0
ret
mov ebp, dword [esp + 0xc4]
mov dword [esp], ebp
mov ebp, dword [esp + 0xc8]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xcc]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xbc]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
call fcn.004e4250
add esp, 0xc0
ret
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x4e4987
mov ecx, dword [esp + 0xc4]
mov dword [esp], ecx
shl eax, 2
mov dword [esp + 4], eax
call fcn.00477900
add esp, 0xc0
ret
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
mov ecx, dword [esp + 0xc8]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xcc]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0xac]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x18], ebx
call fcn.004dd860
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xf0]
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x74]
cmp edx, ebx
jle 0x4e4d57
sub edx, ebx
mov dword [esp + 0x88], edx
mov ebp, dword [esp + 0x94]
sub ebp, edx
mov dword [esp + 0x3c], ebp
mov edi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl edx, 2
sar ebp, 0x1f
and edx, ebp
mov ebp, dword [ecx + eax*4]
mov esi, dword [ebp + 4]
mov dword [esp + 0x5c], esi
mov ecx, dword [esp + 0xbc]
add edx, ecx
mov dword [esp + 0x9c], edx
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x88]
sub ecx, eax
mov dword [esp + 0x38], ecx
mov eax, dword [ebp]
mov dword [esp + 0xac], eax
mov ebp, dword [ebp + 8]
mov dword [esp + 0x64], ebp
test esi, esi
je 0x4e4a90
mov dword [esp], eax
shl esi, 2
mov dword [esp + 4], esi
call fcn.00477900
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
lea ecx, [ebx - 1]
mov dword [esp + 0x44], ecx
sub edi, ebx
inc edi
mov dword [esp + 0x84], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
mov ebp, dword [esp + 0x8c]
lea esi, [ebp + 1]
sar edi, 0x1f
mov eax, dword [esp + 0x90]
sub eax, ebx
sub ebp, ebx
inc eax
mov dword [esp + 0x80], eax
shl ecx, 2
mov dword [esp + 0x7c], ecx
and edi, ecx
add edi, edx
mov dword [esp + 0xb4], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x14], esi
inc ebp
mov dword [esp + 0x78], ebp
neg eax
sar eax, 0x1f
and eax, ecx
mov ecx, dword [esp + 0xb8]
add eax, ecx
mov dword [esp + 0xb0], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0xe8]
inc ebp
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0xec]
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x34], eax
call fcn.004e4770
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
call fcn.004dc410
mov eax, dword [esp + 0xec]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ebp, dword [esp + 0x8c]
lea esi, [ebp + ebp*2]
mov edi, dword [esp + 0xc]
mov dword [esp + 0xac], edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x64], ebp
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
call fcn.004dc450
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
test eax, eax
je 0x4e4c08
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], edx
mov dword [esp], ecx
shl eax, 2
mov dword [esp + 4], eax
call fcn.00477900
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x54]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [esp + 0xac]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x90]
mov dword [esp + 0x20], esi
call fcn.004dd980
mov eax, dword [esp + 0x24]
mov dword [esp + 0xa4], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x54], edx
xor ebx, ebx
jmp 0x4e5307
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
call fcn.004dc410
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
call fcn.004dcb50
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x4e5437
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x20], ebx
call fcn.004e54a0
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x4e498e
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
sub ecx, edx
mov ebx, edx
shl edx, 2
mov ebp, dword [esp + 0x38]
sub ebp, ebx
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and ecx, edx
mov edx, dword [esp + 0x9c]
add ecx, edx
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
call fcn.004e5510
jmp 0x4e498e
mov edx, dword [ecx + eax*4]
mov ebp, dword [edx + 4]
mov dword [esp + 0x58], ebp
mov esi, dword [edx]
mov dword [esp + 0xa8], esi
mov edx, dword [edx + 8]
mov dword [esp + 0x60], edx
test ebp, ebp
je 0x4e4d88
mov dword [esp], esi
shl ebp, 2
mov dword [esp + 4], ebp
call fcn.00477900
mov ebx, dword [esp + 0x74]
lea eax, [ebx - 1]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x94]
sub ecx, ebx
mov ebp, dword [esp + 0x98]
sub ebp, ebx
inc ecx
mov dword [esp + 0x88], ecx
inc ebp
mov dword [esp + 0x84], ebp
mov edi, ecx
neg ecx
sar ecx, 0x1f
mov edx, dword [esp + 0x90]
sub edx, ebx
mov esi, dword [esp + 0x8c]
sub esi, ebx
mov dword [esp + 0x80], esi
inc edx
mov dword [esp + 0x7c], edx
shl eax, 2
mov dword [esp + 0x78], eax
and ecx, eax
mov ebx, dword [esp + 0xbc]
add ecx, ebx
mov dword [esp + 0xb4], ecx
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
call fcn.004dc410
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x80]
inc ebx
mov dword [esp + 0x80], ebx
mov ebp, dword [esp + 0x7c]
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
mov edi, dword [esp + 0x78]
and ebp, edi
mov edi, dword [esp + 0xb8]
add ebp, edi
mov dword [esp + 0xb0], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0xe8]
inc esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0xec]
mov dword [esp + 0x28], esi
mov ebx, dword [esp + 0xf0]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0xf4]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0xf8]
mov dword [esp + 0x34], ebx
call fcn.004e4770
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
call fcn.004dc410
mov eax, dword [esp + 0xec]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov ebx, dword [esp + 0x8c]
lea ebx, [ebx + ebx*2]
mov ebp, dword [esp + 0xc]
mov dword [esp + 0xa8], ebp
mov esi, dword [esp + 0x10]
mov dword [esp + 0x58], esi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x60], edi
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.004dc450
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
test eax, eax
je 0x4e4f3a
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0xa0], ecx
mov dword [esp], ecx
shl eax, 2
mov dword [esp + 4], eax
call fcn.00477900
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x90]
mov dword [esp + 0x20], esi
call fcn.004dd980
mov eax, dword [esp + 0x24]
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x50], edx
xor ebx, ebx
jmp 0x4e4fb8
mov ebp, dword [esp + 0x6c]
lea ebx, [ebp + 1]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
cmp ebx, 2
jge 0x4e512d
mov dword [esp + 0x6c], ebx
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov ecx, dword [esp + 0x98]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x94]
mov dword [esp + 8], edx
call fcn.004dc410
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
call fcn.004dcb50
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4e4fa2
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 1
call fcn.004e5510
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x20], ebp
call fcn.004e54a0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jle 0x4e50dd
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x74]
sub edx, ebx
inc edx
sub eax, ebx
inc eax
mov edi, edx
neg edx
sar edx, 0x1f
mov ebx, dword [esp + 0x78]
and edx, ebx
mov ebx, dword [esp + 0xa0]
add edx, ebx
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
call fcn.004e5510
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x88]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
call fcn.004dd860
jmp 0x4e4fa2
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov ecx, dword [esp + 0x98]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x94]
mov dword [esp + 8], edx
call fcn.004dc410
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
call fcn.004dcb50
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x4e528a
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x94]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x20], ebx
call fcn.004e54a0
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x4e521b
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x48]
sub ecx, edx
mov ebx, ecx
neg ecx
mov ebp, edx
shl edx, 2
sar ecx, 0x1f
mov esi, dword [esp + 0x98]
sub esi, ebp
and ecx, edx
mov edx, dword [esp + 0xbc]
add ecx, edx
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
call fcn.004e5510
mov eax, dword [esp + 0x1c]
test eax, eax
ja 0x4e5272
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
call fcn.004dc410
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 8], eax
mov dword [esp + 0x18], 0
call fcn.004dd860
add esp, 0xc0
ret
lea eax, [0x6c0080]
mov dword [esp], eax
lea eax, [0x733e98]
mov dword [esp + 4], eax
call fcn.00470a40
lea eax, [0x6c0080]
mov dword [esp], eax
lea eax, [0x733e98]
mov dword [esp + 4], eax
call fcn.00470a40
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x74]
sub ecx, edx
inc ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0xc], ebp
mov esi, dword [esp + 0x78]
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
call fcn.004dd860
mov eax, dword [esp + 0x70]
lea ebx, [eax + 1]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
cmp ebx, 2
jge 0x4e4c73
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
call fcn.004dc410
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
call fcn.004dcb50
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4e4c73
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 1
call fcn.004e5510
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x20], ebp
call fcn.004e54a0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jle 0x4e52a2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x74]
sub eax, edx
mov ebp, dword [esp + 0x54]
sub ebp, edx
inc ebp
mov edi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
mov esi, dword [esp + 0x7c]
and ebp, esi
mov esi, dword [esp + 0xa4]
add ebp, esi
mov dword [esp], ebp
inc eax
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
call fcn.004e5510
jmp 0x4e52a2
lea eax, [0x6c0080]
mov dword [esp], eax
lea eax, [0x733e98]
mov dword [esp + 4], eax
call fcn.00470a40
nop
call fcn.00475ee0
jmp fcn.004e4770