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

Disassembly:
push 0xffffffffffffffff
push 0x52a486
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x55c4c8]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55c4c8]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x154]
mov ebp, dword [esp + 0x14c]
mov ecx, dword [ebp + 0x68]
add dword [eax], ecx
mov edx, dword [ebp + 0x6c]
add dword [eax + 4], edx
mov ecx, dword [ebp + 0x70]
sub dword [eax + 8], ecx
mov edx, dword [ebp + 0x74]
sub dword [eax + 0xc], edx
mov esi, dword [eax]
mov edi, dword [eax + 8]
mov edx, dword [eax + 4]
mov ecx, dword [ebp + 0x58]
mov ebx, dword [esp + 0x150]
mov dword [esp + 0x88], eax
mov eax, dword [eax + 0xc]
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], eax
test ecx, ecx
jne 0x4fc745
mov ecx, dword [ebp + 0x3c]
lea edx, [edx + ecx + 6]
jmp 0x4fc766
cmp ecx, 2
jne 0x4fc75a
mov ecx, 0xfffffffa
sub ecx, dword [ebp + 0x3c]
add eax, ecx
mov dword [esp + 0x50], eax
jmp 0x4fc766
cmp ecx, 1
jne 0x4fc766
sub edi, dword [ebp + 0x38]
mov dword [esp + 0x4c], edi
cmp dword [ebp + 0x60], 0
jne 0x4fc78b
mov ecx, dword [ebp + 0x5c]
test ecx, ecx
jne 0x4fc778
add edx, dword [ebp + 0x28]
jmp 0x4fc784
cmp ecx, 2
jne 0x4fc784
sub eax, dword [ebp + 0x28]
mov dword [esp + 0x50], eax
add esi, dword [ebp + 0x2c]
mov dword [esp + 0x44], esi
add edx, 5
mov ecx, edi
sub eax, edx
sub ecx, esi
cmp dword [ebp + 0x60], 0
mov dword [esp + 0x48], edx
mov dword [ebp + 4], ecx
mov dword [esp + 0x14], eax
mov dword [ebp + 8], eax
jne 0x4fd2a1
test ecx, ecx
jle 0x4fd2a1
test eax, eax
jle 0x4fd2a1
mov dl, byte [ebp]
test dl, dl
je 0x4fc7cb
mov eax, dword [ebp + 0x118]
jmp 0x4fc7cd
xor eax, eax
mov ecx, dword [ebp + 0x108]
add eax, ecx
jne 0x4fc7dd
fild dword [esp + 0x50]
jmp 0x4fc80f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
mov edi, eax
jl 0x4fc7ed
mov edi, ecx
jmp 0x4fc7ef
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
cmp eax, esi
jg 0x4fc7fb
mov eax, esi
fild dword [esp + 0x14]
add ecx, ecx
sub eax, ecx
add eax, edi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdivp st(1)
fst qword [ebp + 0x50]
test dl, dl
je 0x4fc81e
mov eax, dword [ebp + 0x118]
jmp 0x4fc820
xor eax, eax
mov ecx, dword [ebp + 0x108]
add eax, ecx
jne 0x4fc832
mov eax, dword [esp + 0x50]
fstp st(0)
jmp 0x4fc851
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
mov dword [esp + 0x14], eax
jg 0x4fc844
mov dword [esp + 0x14], ecx
fimul dword [esp + 0x14]
call fcn.00528350
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x48]
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x40], eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
add eax, 3
add edx, 0xfffffffb
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x64]
push 0
push ecx
lea esi, [esp + 0x24]
mov edi, ebx
mov dword [ebp + 0x44], 0
mov dword [esp + 0x28], edx
call fcn.004d11e0
mov eax, dword [ebp + 0x108]
add esp, 8
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4fcad0
jmp 0x4fc8c0
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
test ecx, ecx
jl 0x4fc90b
cmp ecx, dword [ebp + 0x108]
jge 0x4fc90b
mov eax, dword [ebp + 0x104]
imul eax, ecx
add eax, dword [ebp + 0x100]
jmp 0x4fc90d
xor eax, eax
mov esi, dword [eax]
mov dword [esp + 0x40], esi
test esi, esi
jle 0x4fc91d
mov dword [esp + 0x14], esi
jmp 0x4fc925
mov edx, esi
neg edx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fmul qword [ebp + 0x50]
call fcn.00528350
mov ecx, dword [esp + 0x44]
lea edx, [ecx - 5]
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x40]
mov dword [esp + 0x1c], ecx
test esi, esi
jle 0x4fc94b
sub edx, eax
jmp 0x4fc94d
add edx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x54], ecx
mov ecx, ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x60], edx
call fcn.004fc6a0
cmp esi, eax
jne 0x4fc977
mov dword [ebp + 0x48], edx
mov ecx, ebp
call fcn.004fc690
cmp esi, eax
jne 0x4fc985
mov dword [ebp + 0x44], edx
cmp byte [ebp + 1], 0
je 0x4fc9be
mov eax, dword [ebp + 0x64]
lea ecx, [eax - 0x14]
lea edx, [eax - 0x14]
add eax, 0xffffffec
movzx eax, al
movzx edx, dl
shl eax, 8
or eax, edx
mov edx, dword [ebp + 0x34]
movzx ecx, cl
shl eax, 8
push 0
or eax, ecx
push edx
lea esi, [esp + 0x5c]
mov edi, ebx
call fcn.004d11e0
add esp, 8
mov eax, dword [ebp + 0x34]
push 0
push eax
mov eax, dword [ebp + 0x64]
lea esi, [esp + 0x24]
mov edi, ebx
call fcn.004d11e0
lea ecx, [esp + 0xb8]
xor edx, edx
add esp, 8
mov dword [esp + 0xac], ecx
mov word [esp + 0xb0], dx
cmp dword [esp + 0x40], 0x2710
mov dword [esp + 0x144], edx
mov ecx, 0x54c5ec
jg 0x4fca08
mov ecx, 0x533194
mov edx, dword [esp + 0x40]
cmp edx, 0x2710
jle 0x4fca27
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x4fca29
mov eax, edx
push ecx
push eax
push 0x54c5f0
lea edi, [esp + 0xb8]
call fcn.004b5630
mov eax, dword [esp + 0x50]
mov ecx, eax
sub ecx, dword [ebp + 0x2c]
add eax, 0xfffffffb
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
lea edx, [eax - 5]
add esp, 0xc
add eax, 5
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x30]
push 0x26
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0x64]
push eax
mov eax, dword [esp + 0xb4]
push edx
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0xfc]
push eax
mov eax, dword [ecx]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [eax + 0x1c]
call edx
mov ecx, eax
mov edx, ebx
call fcn.004d1370
mov dword [esp + 0x158], 0xffffffff
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0xc4]
add esp, 0x14
cmp eax, ecx
je 0x4fcabb
push eax
call fcn.0050a8b9
add esp, 4
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [ebp + 0x108]
mov dword [esp + 0x18], eax
jl 0x4fc8c0
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x64]
push 0
push edx
lea esi, [esp + 0x24]
mov edi, ebx
mov dword [esp + 0x2c], ecx
call fcn.004d11e0
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0x128]
cdq
idiv ecx
add esp, 8
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xfc]
fild dword [esp + 0x14]
mov eax, dword [eax + 0x7dc]
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
fst qword [esp + 0x94]
fild dword [esp + 0x14]
test ecx, ecx
jge 0x4fcb4c
fadd qword [0x54dc00]
fdivp st(1)
mov dword [esp + 0x40], 0
fst qword [esp + 0x8c]
fld qword [0x54db40]
fmul st(1)
fst qword [esp + 0xa4]
fdiv qword [0x54db60]
fstp qword [esp + 0x9c]
test eax, eax
jbe 0x4fceab
mov eax, dword [ebp + 0xfc]
add eax, 0x7d8
cmp dword [esp + 0x40], 0
jl 0x4fce90
mov edx, dword [esp + 0x40]
cmp edx, dword [eax + 4]
jge 0x4fce90
mov eax, dword [eax]
mov ecx, edx
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4fce90
cmp dword [ebp + 0x128], 0
mov dword [esp + 0x3c], 0
jle 0x4fce90
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
cmp edx, dword [eax + 0x9c]
jge 0x4fce90
test edx, edx
jl 0x4fce7b
mov ecx, edx
mov edx, eax
cmp ecx, dword [edx + 0x9c]
jge 0x4fce7b
mov ecx, dword [eax + 0x98]
mov edx, dword [esp + 0x3c]
mov esi, dword [ecx + edx*4]
test esi, esi
je 0x4fce7b
fild dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
fst qword [esp + 0x74]
mov dword [esp + 0x28], eax
fild dword [esp + 0x3c]
fmul qword [esp + 0x94]
faddp st(1)
fst qword [esp + 0x54]
fild dword [esp + 0x40]
fmul st(2)
fxch st(1)
fadd qword [esp + 0xa4]
faddp st(1)
call fcn.00528350
mov dword [esp + 0x1c], eax
fiadd dword [esp + 0x1c]
fsub qword [esp + 0x9c]
call fcn.00528350
fld qword [esi]
fldz
mov dword [esp + 0x24], eax
fcompp
fnstsw ax
fld qword [esi]
test ah, 5
jp 0x4fcc85
mov esi, dword [ebp + 0x40]
mov dword [esp + 0x14], esi
fild dword [esp + 0x14]
fxch st(1)
fmul qword [ebp + 0x50]
fsubp st(1)
jmp 0x4fcc99
fld qword [esi]
mov esi, dword [ebp + 0x40]
fadd st(0), st(0)
mov dword [esp + 0x14], esi
fsubp st(1)
fmul qword [ebp + 0x50]
fiadd dword [esp + 0x14]
call fcn.00528350
mov ecx, dword [esp + 0x18]
push 0x10
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
push 0
push eax
push ecx
lea eax, [esp + 0x2c]
push eax
push ebx
mov dword [esp + 0x40], esi
call fcn.004d0d70
mov eax, dword [ebp + 0x64]
push 1
lea esi, [esp + 0x38]
mov edi, ebx
call fcn.004d1270
mov ecx, dword [esp + 0x58]
inc ecx
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
xor eax, eax
add esp, 0x1c
mov dword [esp + 0x30], eax
fmul qword [esp + 0x94]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
fadd qword [esp + 0x74]
fld qword [esp + 0x9c]
fmul qword [0x54db40]
fsubp st(1)
call fcn.00528350
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x44]
lea edx, [eax + 2]
add eax, 0xfffffffd
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x64]
lea ecx, [eax - 0x4b]
mov dword [esp + 0x30], edx
lea edx, [eax - 0x4b]
add eax, 0xffffffb5
movzx eax, al
movzx edx, dl
shl eax, 8
or eax, edx
mov edx, dword [ebp + 0x34]
movzx ecx, cl
shl eax, 8
push 0
or eax, ecx
push edx
lea esi, [esp + 0x34]
call fcn.004d11e0
mov eax, dword [ebp + 0x40]
mov edx, dword [ebp + 0x34]
lea ecx, [eax + 2]
add eax, 0xfffffffd
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x64]
push 0
push edx
mov dword [esp + 0x40], ecx
call fcn.004d11e0
mov eax, dword [ebp + 0x44]
add esp, 0x10
cmp dword [ebp + 0x40], eax
je 0x4fcdc9
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x64]
inc edx
mov dword [esp + 0x34], edx
lea edx, [eax - 0x4b]
mov dword [esp + 0x2c], ecx
lea ecx, [eax - 0x4b]
add eax, 0xffffffb5
movzx eax, al
movzx edx, dl
shl eax, 8
or eax, edx
mov edx, dword [ebp + 0x34]
movzx ecx, cl
shl eax, 8
push 0
or eax, ecx
push edx
call fcn.004d11e0
add esp, 8
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0xac]
push eax
lea edx, [ebp + 0x120]
call fcn.004fd4a0
mov dword [esp + 0x144], 1
fld qword [esp + 0x54]
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
call fcn.00528350
mov edx, dword [ebp + 0x28]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x44]
add edx, eax
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x30]
push 0x25
mov dword [esp + 0x74], edx
mov edx, dword [ebp + 0x64]
push eax
mov eax, dword [esp + 0xb4]
push edx
mov dword [esp + 0x78], ecx
mov ecx, dword [ebp + 0xfc]
push eax
mov eax, dword [ecx]
lea edx, [esp + 0x74]
push edx
mov edx, dword [eax + 0x1c]
call edx
mov ecx, eax
mov edx, ebx
call fcn.004d1370
mov dword [esp + 0x158], 0xffffffff
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0xc4]
add esp, 0x14
cmp eax, ecx
je 0x4fce74
push eax
call fcn.0050a8b9
add esp, 4
fld qword [esp + 0x8c]
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, dword [ebp + 0x128]
mov dword [esp + 0x3c], eax
jl 0x4fcbcc
mov eax, dword [esp + 0x40]
mov edx, dword [ebp + 0xfc]
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [edx + 0x7dc]
jb 0x4fcb81
mov eax, dword [ebp + 0xfc]
fstp st(0)
mov eax, dword [eax + 0x7dc]
test eax, eax
je 0x4fd2a1
mov esi, dword [ebp + 0x58]
cmp esi, 1
jne 0x4fd0dd
lea edx, [eax + 1]
imul edx, dword [ebp + 0x3c]
mov eax, dword [ebp + 8]
add edx, 8
cmp eax, edx
jle 0x4fd2a1
mov esi, dword [ebp + 0x38]
xor ecx, ecx
sub eax, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x4c]
cdq
add ecx, 8
sub eax, edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x2c], ecx
lea ecx, [esi + ecx - 8]
sar eax, 1
mov dword [esp + 0x34], ecx
lea ecx, [eax + edx]
mov edx, dword [esp + 0x50]
sub edx, eax
mov eax, dword [ebp + 0x64]
push 1
lea esi, [esp + 0x30]
mov edi, ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edx
call fcn.004d1270
mov eax, dword [ebp + 0xfc]
add esp, 4
cmp dword [eax + 0x7dc], 0
mov dword [esp + 0x18], 0
jbe 0x4fd2a1
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x4fcfb3
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x6c], edx
mov edx, dword [ebp + 0x30]
push 0x25
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 0x3c]
push edx
mov edx, dword [ebp + 0x64]
add ecx, eax
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x78]
push edx
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebp + 0xfc]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x74]
push eax
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
mov edx, ebx
call fcn.004d1370
add esp, 0x14
mov ecx, dword [ebp + 0xfc]
test edi, edi
jl 0x4fd0c1
cmp edi, dword [ecx + 0x7dc]
jge 0x4fd0c1
mov edx, dword [ecx + 0x7d8]
mov esi, dword [edx + edi*4]
test esi, esi
je 0x4fd0c1
mov edx, dword [ebp + 0x38]
xor eax, eax
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
add eax, 5
mov dword [esp + 0x1c], eax
lea eax, [eax + edx - 0x28]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x3c]
inc edx
imul edx, eax
lea edx, [edx + edi + 2]
lea eax, [eax + edx + 2]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x30]
push 0x24
push edx
mov edx, dword [ebp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x10]
push edx
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
mov edx, ebx
call fcn.004d1370
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
xor eax, eax
add esp, 0x14
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x20]
add ecx, 5
push 0x10
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x2c]
add edx, 0xfffffffb
add eax, 5
push 0
mov dword [esp + 0x84], edx
mov edx, dword [esi + 0xc]
add ecx, 0xfffffffb
push edx
mov dword [esp + 0x84], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x8c], ecx
push eax
lea ecx, [esp + 0x84]
push ecx
push ebx
call fcn.004d0d70
mov eax, dword [ebp + 0x64]
push 1
lea esi, [esp + 0x90]
mov edi, ebx
call fcn.004d1270
mov edi, dword [esp + 0x34]
add esp, 0x1c
mov edx, dword [ebp + 0xfc]
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [edx + 0x7dc]
jb 0x4fcf54
jmp 0x4fd2a1
test esi, esi
je 0x4fd0ea
cmp esi, 2
jne 0x4fd2a1
mov ecx, dword [ebp + 0x38]
mov edi, dword [ebp + 0x3c]
imul ecx, eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 4]
sub eax, ecx
mov ecx, dword [esp + 0x44]
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + ecx + 2]
mov dword [esp + 0x2c], edx
test esi, esi
jne 0x4fd12f
mov edx, dword [esp + 0x48]
mov ecx, edx
sub ecx, edi
sub ecx, 0xb
add edx, 0xfffffff5
mov dword [esp + 0x38], edx
jmp 0x4fd14f
cmp esi, 2
jne 0x4fd153
cmp dword [ebp + 0x5c], esi
jne 0x4fd141
mov ecx, dword [esp + 0x50]
add ecx, edi
jmp 0x4fd149
mov edx, dword [esp + 0x50]
lea ecx, [edi + edx + 6]
add edi, ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x4c]
sub ecx, eax
mov eax, dword [ebp + 0x64]
sub ecx, 2
push 1
lea esi, [esp + 0x30]
mov edi, ebx
mov dword [esp + 0x38], ecx
call fcn.004d1270
mov edx, dword [ebp + 0xfc]
add esp, 4
cmp dword [edx + 0x7dc], 0
mov dword [esp + 0x18], 0
jbe 0x4fd2a1
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xfc]
test eax, eax
jl 0x4fd28a
cmp eax, dword [ecx + 0x7dc]
jge 0x4fd28a
mov edx, dword [ecx + 0x7d8]
mov esi, dword [edx + eax*4]
test esi, esi
je 0x4fd28a
mov edi, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x38]
mov edx, eax
imul edx, dword [esp + 0x18]
lea edx, [edx + edi + 5]
mov edi, dword [esp + 0x38]
lea eax, [eax + edx - 0x30]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x30]
add edx, 2
mov dword [esp + 0x58], edx
mov edx, dword [ebp + 0x30]
push 0x24
push edx
mov edx, dword [ebp + 0x64]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edi
mov eax, dword [esi + 0x10]
push edx
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x64]
push eax
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
mov edx, ebx
call fcn.004d1370
mov ecx, dword [esp + 0x70]
mov edx, dword [ebp + 0x38]
xor eax, eax
add esp, 0x14
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
add ecx, 5
push 0x10
mov dword [esp + 0x20], ecx
lea ecx, [eax + edx - 0xf]
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0xc]
push 0
add edx, 4
push eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x2c], edx
push ecx
lea edx, [esp + 0x2c]
push edx
add edi, 0xfffffffc
push ebx
mov dword [esp + 0x40], edi
call fcn.004d0d70
mov eax, dword [ebp + 0x64]
push 1
lea esi, [esp + 0x38]
mov edi, ebx
call fcn.004d1270
mov eax, dword [esp + 0x34]
add esp, 0x1c
mov ecx, dword [ebp + 0xfc]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ecx + 0x7dc]
jb 0x4fd192
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [eax], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0050a231
add esp, 0x134
ret 0xc