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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56128b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x63d20c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
jne 0x488318
push 0x10
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x80], eax
mov dword [esp + 0xa0], ebx
cmp eax, ebx
je 0x4870e7
mov ecx, eax
call fcn.00489de0
jmp 0x4870e9
xor eax, eax
mov ecx, dword [esi]
mov dword [esi + 0x3c], eax
mov ecx, dword [ecx + 0x34]
mov dword [esp + 0xa0], 0xffffffff
cmp ecx, ebx
je 0x488318
mov edx, dword [ecx + 0x24]
cmp dword [edx + 0x14], ebx
je 0x488318
mov ecx, esi
call fcn.00486720
mov ecx, esi
call fcn.00486a70
mov edi, dword [esi]
mov eax, dword [edi + 0x40]
cmp eax, 4
ja case.default.0x48712c
jmp dword [eax*4 + 0x488330]
mov eax, dword [edi + 0x54]
mov ecx, dword [esi + 0xc]
fld qword [ecx + eax*8 - 8]
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + eax*4 - 4]
fstp qword [esp + 0x84]
mov edx, dword [esi + 0x14]
mov ebp, dword [edx + eax*4 - 4]
mov edx, dword [esi + 0x18]
mov edx, dword [edx + eax*4 - 4]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x1c]
mov ebx, dword [edx + eax*4 - 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x38]
cmp ecx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x60], eax
jge 0x48718c
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x40], eax
jmp 0x487194
mov dword [esp + 0x40], 0
mov eax, dword [edi + 0x3c]
cmp ebp, eax
mov dword [esp + 0x44], eax
jge 0x4871ac
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
jmp 0x4871b4
mov dword [esp + 0x18], 0
mov ecx, dword [edi + 0x58]
mov edx, dword [esp + 0x40]
mov ebp, ecx
sub ebp, edx
jns 0x4871c3
xor ebp, ebp
mov edi, dword [edi + 0x5c]
mov eax, edi
sub eax, dword [esp + 0x18]
jns 0x4871d0
xor eax, eax
sub ecx, edx
mov edx, dword [esp + 0x60]
lea ecx, [ecx + edx - 1]
mov edx, dword [esp + 0x20]
cmp ecx, edx
mov dword [esp + 0x60], ecx
jl 0x4871eb
dec edx
mov dword [esp + 0x60], edx
sub edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
lea ecx, [edi + ecx - 1]
cmp ecx, edx
jl 0x487202
lea ecx, [edx - 1]
cdq
idiv ebx
mov edi, eax
mov eax, ecx
cdq
idiv ebx
mov ecx, eax
cmp edi, ecx
jg case.default.0x48712c
mov eax, ebp
mov ebp, dword [esp + 0x24]
cdq
idiv ebp
sub ecx, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x60]
cdq
idiv ebp
mov dword [esp + 0x44], eax
mov eax, edi
imul eax, ebx
mov ebp, eax
neg eax
mov dword [esp + 0x60], eax
mov eax, ebx
neg eax
inc ecx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x2c], edx
jg 0x48734b
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x44]
mov edi, edx
imul edi, eax
mov ecx, eax
neg ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x20]
sub ecx, edi
sub ebx, edx
inc ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], ebx
jmp 0x487298
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
add eax, edi
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x78], eax
jle 0x4872ac
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x1c]
lea ecx, [eax + ebp]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jle 0x4872c9
mov edx, dword [esp + 0x60]
add edx, eax
mov dword [esp + 0x34], edx
push 0x28
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x487327
mov ecx, dword [esi]
fld qword [esp + 0x84]
mov ebx, dword [ecx + 0x58]
mov edx, dword [ecx + 0x5c]
mov ecx, dword [ecx + 0x50]
fstp qword [eax + 8]
mov ebp, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax], ebp
mov ebp, dword [esp + 0x68]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x10], edi
sub edi, ebx
add edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x6c]
mov ecx, ebp
sub ecx, edx
add ecx, dword [esp + 0x18]
mov dword [eax + 0x14], ebp
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], ecx
jmp 0x487329
xor eax, eax
mov ecx, dword [esi + 0x3c]
push eax
call fcn.00489e40
mov edx, dword [esp + 0x54]
add dword [esp + 0x64], edx
mov edi, dword [esp + 0x78]
sub ebx, 1
mov dword [esp + 0x6c], ebx
jne 0x487290
add ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
add dword [esp + 0x60], eax
sub dword [esp + 0x5c], 1
mov dword [esp + 0x68], ebp
jne 0x48724e
jmp case.default.0x48712c
mov eax, dword [edi + 0x3c]
mov ecx, dword [esi + 0x38]
cmp ecx, eax
jge 0x487382
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
jmp 0x487386
mov dword [esp + 0x18], ebx
mov ecx, dword [edi + 0x5c]
push ecx
mov ecx, esi
call fcn.00486e60
mov edx, dword [edi + 0x34]
mov ecx, dword [edx + 0x24]
cmp eax, dword [ecx + 0x14]
mov dword [esp + 0x28], eax
jg case.default.0x48712c
jmp 0x4873aa
mov eax, dword [esp + 0x28]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x5c]
mov edi, dword [ecx + 0x3c]
mov ebx, dword [esi + 0x24]
mov ebx, dword [ebx + eax*4 - 4]
mov dword [esp + 0x64], edx
add edx, edi
cmp ebx, edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x78], ebx
jge case.default.0x48712c
mov edx, dword [esi + 0xc]
fld qword [edx + eax*8 - 8]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + eax*4 - 4]
fstp qword [esp + 0x84]
mov edi, dword [esi + 0x28]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x14]
mov edx, dword [edx + eax*4 - 4]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0x18]
mov edx, dword [edx + eax*4 - 4]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + eax*4 - 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x38]
cmp edi, eax
mov dword [esp + 0x60], eax
jge 0x487422
sub eax, edi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
jmp 0x487424
xor ebx, ebx
mov ecx, dword [ecx + 0x58]
mov eax, edi
sub eax, dword [esp + 0x20]
mov ebp, ecx
cdq
sub eax, edx
sar eax, 1
add ebx, eax
sub ebp, ebx
mov dword [esp + 0x40], ebx
jns 0x487440
xor ebp, ebp
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x78]
mov eax, edx
sub eax, dword [esp + 0x18]
jns 0x487452
xor eax, eax
mov edi, dword [esp + 0x60]
sub ecx, ebx
lea ecx, [ecx + edi - 1]
mov edi, dword [esp + 0x20]
cmp ecx, edi
mov dword [esp + 0x60], ecx
jl 0x48746d
dec edi
mov dword [esp + 0x60], edi
sub edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
lea ecx, [edx + ecx - 1]
mov edx, dword [esp + 0x3c]
cmp ecx, edx
jl 0x487484
lea ecx, [edx - 1]
mov ebx, dword [esp + 0x1c]
cdq
idiv ebx
mov edi, eax
mov eax, ecx
cdq
idiv ebx
mov ecx, eax
cmp edi, ecx
jg 0x487607
mov ebx, dword [esp + 0x24]
mov eax, ebp
cdq
idiv ebx
sub ecx, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x60]
cdq
idiv ebx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, edi
imul eax, edx
mov ebp, eax
neg eax
mov dword [esp + 0x5c], eax
mov eax, edx
neg eax
inc ecx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], ecx
jmp 0x4874e0
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x2c], edx
jg 0x4875ec
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x44]
mov edi, edx
imul edi, eax
mov ecx, eax
neg ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x20]
sub ecx, edi
sub ebx, edx
inc ebx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x6c], ebx
jmp 0x487528
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x30], eax
add eax, edi
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x74], eax
jle 0x48753c
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x1c]
lea ecx, [eax + ebp]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jle 0x487559
mov edx, dword [esp + 0x5c]
add edx, eax
mov dword [esp + 0x34], edx
push 0x28
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x4875c8
mov edx, dword [esi]
fld qword [esp + 0x84]
mov ecx, dword [edx + 0x50]
mov ebx, dword [edx + 0x58]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x78], ecx
mov ecx, dword [esi + 0x24]
mov ecx, dword [ecx + ebp*4 - 4]
sub ecx, dword [edx + 0x5c]
fstp qword [eax + 8]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x68]
mov dword [eax], edx
mov edx, dword [esp + 0x78]
add ecx, ebp
add ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 0x10], edi
sub edi, ebx
add edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x6c]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 0x14], ebp
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], ecx
jmp 0x4875ca
xor eax, eax
mov ecx, dword [esi + 0x3c]
push eax
call fcn.00489e40
mov eax, dword [esp + 0x54]
add dword [esp + 0x60], eax
mov edi, dword [esp + 0x74]
sub ebx, 1
mov dword [esp + 0x6c], ebx
jne 0x487520
add ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
add dword [esp + 0x5c], ecx
sub dword [esp + 0x58], 1
mov dword [esp + 0x68], ebp
jne 0x4874e0
mov edx, dword [esi]
mov eax, dword [esp + 0x28]
mov ecx, dword [edx + 0x34]
mov edx, dword [ecx + 0x24]
inc eax
cmp eax, dword [edx + 0x14]
mov dword [esp + 0x28], eax
jle 0x4873a6
jmp case.default.0x48712c
mov eax, dword [edi + 0x54]
mov edx, dword [esi + 0x10]
mov ebx, dword [edx + eax*4 - 4]
mov ecx, dword [esi + 0xc]
fld qword [ecx + eax*8 - 8]
lea edx, [edx + eax*4]
mov dword [esp + 0x20], ebx
fst qword [esp + 0x84]
mov ebx, dword [esi + 0x14]
mov ebp, dword [ebx + eax*4 - 4]
mov dword [esp + 0x3c], ebp
mov ebp, dword [esi + 0x18]
lea ebx, [ebx + eax*4]
lea ebp, [ebp + eax*4]
mov dword [esp + 0x78], ebp
mov ebp, dword [ebp - 4]
mov dword [esp + 0x24], ebp
mov ebp, dword [esi + 0x1c]
lea ebp, [ebp + eax*4]
mov dword [esp + 0x70], ebp
mov ebp, dword [ebp - 4]
mov dword [esp + 0x1c], ebp
mov ebp, dword [edi + 0x34]
mov ebp, dword [ebp + 0x24]
lea ecx, [ecx + eax*8]
mov dword [esp + 0x28], eax
inc eax
cmp eax, dword [ebp + 0x14]
mov dword [esp + 0x74], eax
jg 0x4876b4
mov eax, dword [esp + 0x78]
fstp st(0)
fld qword [ecx]
mov ecx, dword [eax]
mov ebp, dword [ebx]
mov edx, dword [edx]
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], ebp
jmp 0x4876d6
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x58], edx
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], eax
mov edx, ebx
mov eax, dword [edi + 0x38]
fstp qword [esp + 0x8c]
mov dword [esp + 0x38], ecx
lea ecx, [edx + ebx + 3]
cmp ecx, eax
mov dword [esp + 0x60], eax
jge 0x487700
sub eax, edx
sub eax, ebx
sub eax, 3
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x487702
xor ecx, ecx
mov eax, dword [edi + 0x3c]
lea edx, [ecx + ebx + 3]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x3c]
cmp edx, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
jge 0x48773f
cmp ebp, eax
jge 0x48773f
cmp edx, ebp
jle 0x487732
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
jmp 0x487747
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
jmp 0x487747
mov dword [esp + 0x18], 0
mov ebp, dword [edi + 0x58]
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x6c], eax
jns 0x48775c
mov dword [esp + 0x6c], 0
mov edi, dword [edi + 0x5c]
mov edx, dword [esp + 0x18]
mov eax, edi
sub eax, edx
jns 0x48776b
xor eax, eax
sub ebp, ecx
mov ecx, dword [esp + 0x60]
lea ebp, [ecx + ebp - 1]
cmp ebp, ebx
jl 0x48777e
lea ebp, [ebx - 1]
jmp 0x487788
test ebp, ebp
jge 0x487788
mov ebp, dword [esp + 0x48]
neg ebp
sub edi, edx
mov edx, dword [esp + 0x44]
lea ecx, [edi + edx - 1]
mov edx, dword [esp + 0x3c]
cmp ecx, edx
jl 0x48779f
lea ecx, [edx - 1]
jmp 0x4877a9
test ecx, ecx
jge 0x4877a9
mov ecx, dword [esp + 0x38]
neg ecx
mov ebx, dword [esp + 0x1c]
cdq
idiv ebx
mov edi, eax
mov eax, ecx
cdq
idiv ebx
mov ecx, eax
cmp edi, ecx
jg 0x487916
mov eax, dword [esp + 0x6c]
cdq
idiv dword [esp + 0x24]
sub ecx, edi
mov dword [esp + 0x2c], eax
mov eax, ebp
cdq
idiv dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, edi
imul eax, ebx
mov ebx, eax
neg eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
neg eax
inc ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x70], ecx
jmp 0x487800
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x2c], eax
jg 0x4878fb
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x44]
mov edi, edx
imul edi, eax
mov ecx, eax
neg ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x20]
sub ecx, edi
sub ebp, edx
inc ebp
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], ebp
jmp 0x487848
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
add eax, edi
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x78], eax
jle 0x48785c
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x1c]
lea ecx, [ebx + eax]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jle 0x487879
mov edx, dword [esp + 0x60]
add edx, eax
mov dword [esp + 0x34], edx
push 0x28
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x4878d7
mov ecx, dword [esi]
fld qword [esp + 0x84]
mov ebp, dword [ecx + 0x58]
mov edx, dword [ecx + 0x5c]
mov ecx, dword [ecx + 0x50]
fstp qword [eax + 8]
mov ebx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax], ebx
mov ebx, dword [esp + 0x68]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x10], edi
sub edi, ebp
add edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x6c]
mov ecx, ebx
sub ecx, edx
add ecx, dword [esp + 0x18]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], ecx
jmp 0x4878d9
xor eax, eax
mov ecx, dword [esi + 0x3c]
push eax
call fcn.00489e40
mov edx, dword [esp + 0x54]
add dword [esp + 0x64], edx
mov edi, dword [esp + 0x78]
sub ebp, 1
mov dword [esp + 0x6c], ebp
jne 0x487840
add ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
add dword [esp + 0x60], eax
sub dword [esp + 0x70], 1
mov dword [esp + 0x68], ebx
jne 0x487800
mov ecx, dword [esi]
mov edx, dword [ecx + 0x34]
mov eax, dword [edx + 0x24]
mov edx, dword [esp + 0x74]
cmp edx, dword [eax + 0x14]
jg case.default.0x48712c
mov edx, dword [ecx + 0x58]
mov ebx, edx
sub ebx, dword [esp + 0x5c]
jns 0x487938
xor ebx, ebx
mov edi, dword [ecx + 0x5c]
mov eax, edi
sub eax, dword [esp + 0x18]
jns 0x487945
xor eax, eax
mov ebp, dword [ecx + 0x38]
sub ebp, dword [esp + 0x5c]
lea ebp, [edx + ebp - 1]
mov edx, dword [esp + 0x4c]
cmp ebp, edx
jl 0x48795d
lea ebp, [edx - 1]
jmp 0x487967
test ebp, ebp
jge 0x487967
mov ebp, dword [esp + 0x48]
neg ebp
mov ecx, dword [ecx + 0x3c]
sub ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
lea ecx, [ecx + edi - 1]
cmp ecx, edx
jl 0x48797f
lea ecx, [edx - 1]
jmp 0x487989
test ecx, ecx
jge 0x487989
mov ecx, dword [esp + 0x38]
neg ecx
cdq
idiv dword [esp + 0x38]
mov edi, eax
mov eax, ecx
cdq
idiv dword [esp + 0x38]
mov ecx, eax
cmp edi, ecx
jg case.default.0x48712c
mov eax, ebx
mov ebx, dword [esp + 0x48]
cdq
idiv ebx
sub ecx, edi
mov dword [esp + 0x2c], eax
mov eax, ebp
cdq
idiv ebx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, edx
imul eax, edi
mov ebp, eax
neg eax
mov dword [esp + 0x60], eax
mov eax, edx
neg eax
inc ecx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x54]
cmp dword [esp + 0x2c], edx
jg 0x487adb
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x54]
mov edi, eax
imul edi, edx
mov ecx, eax
neg ecx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x4c]
sub ecx, edi
sub ebx, edx
inc ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x70], ebx
jmp 0x487a28
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x30], eax
add eax, edi
cmp eax, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
jle 0x487a3c
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x38]
lea ecx, [eax + ebp]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
cmp ecx, eax
jle 0x487a59
mov edx, dword [esp + 0x60]
add edx, eax
mov dword [esp + 0x34], edx
push 0x28
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x487ab7
mov ecx, dword [esi]
fld qword [esp + 0x8c]
mov ebx, dword [ecx + 0x58]
mov edx, dword [ecx + 0x5c]
mov ecx, dword [ecx + 0x50]
fstp qword [eax + 8]
mov ebp, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax], ebp
mov ebp, dword [esp + 0x68]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x10], edi
sub edi, ebx
add edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x70]
mov ecx, ebp
sub ecx, edx
add ecx, dword [esp + 0x18]
mov dword [eax + 0x14], ebp
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], ecx
jmp 0x487ab9
xor eax, eax
mov ecx, dword [esi + 0x3c]
push eax
call fcn.00489e40
mov edx, dword [esp + 0x6c]
add dword [esp + 0x64], edx
mov edi, dword [esp + 0x78]
sub ebx, 1
mov dword [esp + 0x70], ebx
jne 0x487a20
add ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
add dword [esp + 0x60], eax
sub dword [esp + 0x50], 1
mov dword [esp + 0x68], ebp
jne 0x4879db
jmp case.default.0x48712c
mov eax, dword [edi + 0x3c]
mov ecx, dword [esi + 0x38]
cmp ecx, eax
jge 0x487b12
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
jmp 0x487b16
mov dword [esp + 0x18], ebx
mov ecx, dword [edi + 0x5c]
push ecx
mov ecx, esi
call fcn.00486ee0
mov edx, dword [edi + 0x34]
mov ecx, dword [edx + 0x24]
cmp eax, dword [ecx + 0x14]
mov dword [esp + 0x28], eax
jg case.default.0x48712c
lea edx, [eax*4]
inc eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x60], eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x5c]
mov edi, dword [ecx + 0x3c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x64], edx
add edx, edi
mov dword [esp + 0x44], edi
mov edi, dword [esi + 0x24]
mov ebx, dword [edi + eax - 4]
add edi, eax
cmp ebx, edx
mov dword [esp + 0x70], ebx
jl 0x487b86
mov ebx, dword [ecx + 0x34]
mov ebx, dword [ebx + 0x24]
mov ebp, dword [esp + 0x60]
cmp ebp, dword [ebx + 0x14]
jg case.default.0x48712c
cmp dword [edi], edx
jge case.default.0x48712c
mov edi, dword [esp + 0x28]
mov edx, dword [esi + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [esi + 0x10]
fld qword [edx - 8]
mov ebx, dword [edi + eax - 4]
fst qword [esp + 0x84]
add edi, eax
mov dword [esp + 0x20], ebx
mov ebx, dword [esi + 0x14]
mov ebp, dword [ebx + eax - 4]
add ebx, eax
mov dword [esp + 0x3c], ebp
mov ebp, dword [esi + 0x18]
add ebp, eax
mov dword [esp + 0x78], ebp
mov ebp, dword [ebp - 4]
mov dword [esp + 0x24], ebp
mov ebp, dword [esi + 0x1c]
add eax, ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x74], eax
mov eax, dword [eax - 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x34]
mov eax, dword [eax + 0x24]
cmp ebp, dword [eax + 0x14]
jg 0x487c05
mov eax, dword [ebx]
fstp st(0)
fld qword [edx]
mov edx, dword [edi]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x58], eax
mov eax, dword [edx]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x48], eax
mov eax, dword [edx]
jmp 0x487c21
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x2c]
fstp qword [esp + 0x8c]
mov edi, dword [esi + 0x28]
mov ebx, dword [ecx + 0x38]
mov dword [esp + 0x38], eax
lea eax, [edx + edi + 3]
cmp eax, ebx
jge 0x487c4d
mov eax, ebx
sub eax, edx
sub eax, edi
sub eax, 3
cdq
sub eax, edx
sar eax, 1
jmp 0x487c4f
xor eax, eax
mov edx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x58]
sub edi, edx
add eax, edi
mov ebp, ecx
sub ebp, eax
lea edx, [eax + edx + 3]
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], edx
jns 0x487c6e
xor ebp, ebp
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x70]
mov edi, edx
sub edi, dword [esp + 0x18]
jns 0x487c80
xor edi, edi
sub ecx, eax
mov eax, dword [esp + 0x20]
lea ebx, [ecx + ebx - 1]
cmp ebx, eax
jl 0x487c93
lea ebx, [eax - 1]
jmp 0x487c9d
test ebx, ebx
jge 0x487c9d
mov ebx, dword [esp + 0x48]
neg ebx
sub edx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
lea ecx, [edx + eax - 1]
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jl 0x487cb6
lea ecx, [eax - 1]
jmp 0x487cc0
test ecx, ecx
jge 0x487cc0
mov ecx, dword [esp + 0x38]
neg ecx
mov eax, edi
cdq
idiv dword [esp + 0x1c]
mov edi, eax
mov eax, ecx
cdq
idiv dword [esp + 0x1c]
mov ecx, eax
cmp edi, ecx
jg 0x487e4d
mov eax, ebp
mov ebp, dword [esp + 0x24]
cdq
idiv ebp
sub ecx, edi
mov dword [esp + 0x2c], eax
mov eax, ebx
cdq
idiv ebp
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, edi
imul eax, edx
mov ebx, eax
neg eax
mov dword [esp + 0x6c], eax
mov eax, edx
neg eax
inc ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x78], ecx
jmp 0x487d20
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x2c], ecx
jg 0x487e32
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x44]
mov edi, edx
imul edi, eax
mov ecx, eax
neg ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x20]
sub ecx, edi
sub ebp, edx
inc ebp
mov dword [esp + 0x68], ecx
mov dword [esp + 0x74], ebp
jmp 0x487d68
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
add eax, edi
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x80], eax
jle 0x487d7f
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x1c]
lea edx, [ebx + eax]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
cmp edx, eax
jle 0x487d9c
mov ecx, dword [esp + 0x6c]
add ecx, eax
mov dword [esp + 0x34], ecx
push 0x28
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x487e0b
mov edx, dword [esi]
fld qword [esp + 0x84]
mov ecx, dword [edx + 0x50]
mov ebp, dword [edx + 0x58]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esi + 0x24]
mov ecx, dword [ebx + ecx - 4]
sub ecx, dword [edx + 0x5c]
fstp qword [eax + 8]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x70]
mov dword [eax], edx
mov edx, dword [esp + 0x7c]
add ecx, ebx
add ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 0x10], edi
sub edi, ebp
add edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x74]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], ecx
jmp 0x487e0d
xor eax, eax
mov ecx, dword [esi + 0x3c]
push eax
call fcn.00489e40
mov eax, dword [esp + 0x54]
add dword [esp + 0x68], eax
mov edi, dword [esp + 0x80]
sub ebp, 1
mov dword [esp + 0x74], ebp
jne 0x487d60
add ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
add dword [esp + 0x6c], ecx
sub dword [esp + 0x78], 1
mov dword [esp + 0x70], ebx
jne 0x487d20
mov ecx, dword [esi]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx + 0x34]
mov edx, dword [edx + 0x24]
inc dword [esp + 0x60]
add dword [esp + 0x50], 4
inc eax
cmp eax, dword [edx + 0x14]
mov dword [esp + 0x28], eax
jg 0x48805d
mov ebx, dword [ecx + 0x58]
mov edi, dword [esp + 0x5c]
sub ebx, edi
jns 0x487e7d
xor ebx, ebx
mov eax, dword [esi + 0x24]
mov edx, dword [ecx + 0x5c]
mov ebp, dword [esp + 0x50]
sub edx, dword [eax + ebp - 4]
mov eax, edx
sub eax, dword [esp + 0x18]
jns 0x487e95
xor eax, eax
mov ebp, dword [ecx + 0x38]
sub ebp, edi
mov edi, dword [ecx + 0x58]
lea ebp, [edi + ebp - 1]
mov edi, dword [esp + 0x4c]
cmp ebp, edi
jl 0x487eae
lea ebp, [edi - 1]
jmp 0x487eb8
test ebp, ebp
jge 0x487eb8
mov ebp, dword [esp + 0x48]
neg ebp
mov ecx, dword [ecx + 0x3c]
sub ecx, dword [esp + 0x18]
lea ecx, [ecx + edx - 1]
mov edx, dword [esp + 0x58]
cmp ecx, edx
jl 0x487ed0
lea ecx, [edx - 1]
jmp 0x487eda
test ecx, ecx
jge 0x487eda
mov ecx, dword [esp + 0x38]
neg ecx
cdq
idiv dword [esp + 0x38]
mov edi, eax
mov eax, ecx
cdq
idiv dword [esp + 0x38]
mov ecx, eax
cmp edi, ecx
jg 0x48805d
mov eax, ebx
mov ebx, dword [esp + 0x48]
cdq
idiv ebx
sub ecx, edi
mov dword [esp + 0x2c], eax
mov eax, ebp
cdq
idiv ebx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, edx
imul eax, edi
mov ebp, eax
neg eax
mov dword [esp + 0x64], eax
mov eax, edx
neg eax
inc ecx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x54]
cmp dword [esp + 0x2c], edx
jg 0x488042
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x54]
mov edi, eax
imul edi, edx
mov ecx, eax
neg ecx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x4c]
sub ecx, edi
sub ebx, edx
inc ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x78], ebx
jmp 0x487f78
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x30], eax
add eax, edi
cmp eax, dword [esp + 0x4c]
mov dword [esp + 0x7c], eax
jle 0x487f8c
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x38]
lea ecx, [eax + ebp]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
cmp ecx, eax
jle 0x487fa9
mov edx, dword [esp + 0x64]
add edx, eax
mov dword [esp + 0x34], edx
push 0x28
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x48801e
mov edx, dword [esi]
fld qword [esp + 0x8c]
mov ecx, dword [edx + 0x50]
mov ebx, dword [edx + 0x58]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x80], ecx
mov ecx, dword [esi + 0x24]
mov ecx, dword [ecx + ebp - 4]
sub ecx, dword [edx + 0x5c]
fstp qword [eax + 8]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x74]
mov dword [eax], edx
mov edx, dword [esp + 0x80]
add ecx, ebp
add ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 0x10], edi
sub edi, ebx
add edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x78]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 0x14], ebp
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], ecx
jmp 0x488020
xor eax, eax
mov ecx, dword [esi + 0x3c]
push eax
call fcn.00489e40
mov eax, dword [esp + 0x6c]
add dword [esp + 0x68], eax
mov edi, dword [esp + 0x7c]
sub ebx, 1
mov dword [esp + 0x78], ebx
jne 0x487f70
add ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x64], ecx
sub dword [esp + 0x70], 1
mov dword [esp + 0x74], ebp
jne 0x487f2c
mov edx, dword [esi]
mov eax, dword [esp + 0x28]
mov ecx, dword [edx + 0x34]
mov edx, dword [ecx + 0x24]
inc dword [esp + 0x60]
add dword [esp + 0x50], 4
inc eax
cmp eax, dword [edx + 0x14]
mov dword [esp + 0x28], eax
jle 0x487b44
jmp case.default.0x48712c
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + 0x34]
cmp ecx, eax
jge 0x48809c
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x40], eax
jmp 0x4880a0
mov dword [esp + 0x40], ebx
mov eax, dword [edi + 0x58]
push eax
mov ecx, esi
call fcn.00486f60
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx + 0x24]
cmp eax, dword [edx + 0x14]
mov dword [esp + 0x28], eax
jg case.default.0x48712c
jmp 0x4880c4
mov eax, dword [esp + 0x28]
mov edi, dword [esi]
mov edx, dword [esi + 0x20]
mov ecx, dword [edi + 0x58]
mov ebp, dword [edi + 0x38]
mov ebx, dword [edx + eax*4 - 4]
lea edx, [ecx + ebp]
cmp ebx, edx
jge case.default.0x48712c
mov edx, dword [esi + 0xc]
fld qword [edx + eax*8 - 8]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + eax*4 - 4]
fstp qword [esp + 0x84]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x14]
mov edx, dword [edx + eax*4 - 4]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0x18]
mov edx, dword [edx + eax*4 - 4]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + eax*4 - 4]
mov edx, dword [esi + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x3c]
cmp edx, eax
mov dword [esp + 0x44], eax
jge 0x48812f
sub eax, edx
cdq
sub eax, edx
sar eax, 1
jmp 0x488131
xor eax, eax
sub ecx, ebx
mov ebx, ecx
sub ebx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
jns 0x488141
xor ebx, ebx
mov edi, dword [edi + 0x5c]
mov edx, edi
sub edx, eax
jns 0x48814c
xor edx, edx
sub ecx, dword [esp + 0x40]
lea ebp, [ecx + ebp - 1]
mov ecx, dword [esp + 0x20]
cmp ebp, ecx
jl 0x48815f
lea ebp, [ecx - 1]
mov ecx, dword [esp + 0x44]
sub edi, eax
mov eax, dword [esp + 0x3c]
lea ecx, [edi + ecx - 1]
cmp ecx, eax
jl 0x488174
lea ecx, [eax - 1]
mov eax, edx
cdq
idiv dword [esp + 0x1c]
mov edi, eax
mov eax, ecx
cdq
idiv dword [esp + 0x1c]
mov ecx, eax
cmp edi, ecx
jg 0x4882fb
mov eax, ebx
mov ebx, dword [esp + 0x24]
cdq
idiv ebx
sub ecx, edi
mov dword [esp + 0x2c], eax
mov eax, ebp
cdq
idiv ebx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, edi
imul eax, edx
mov ebp, eax
neg eax
mov dword [esp + 0x68], eax
mov eax, edx
neg eax
inc ecx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], ecx
jmp 0x4881d0
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x2c], edx
jg 0x4882e0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x44]
mov edi, edx
imul edi, eax
mov ecx, eax
neg ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x20]
sub ecx, edi
sub ebx, edx
inc ebx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], ebx
jmp 0x488218
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
add eax, edi
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x7c], eax
jle 0x48822c
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x1c]
lea ecx, [eax + ebp]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jle 0x488249
mov edx, dword [esp + 0x68]
add edx, eax
mov dword [esp + 0x34], edx
push 0x28
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x4882bc
mov edx, dword [esi]
fld qword [esp + 0x84]
mov ecx, dword [edx + 0x50]
mov ebx, dword [edx + 0x5c]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x80], ecx
mov ecx, dword [esi + 0x20]
mov ecx, dword [ecx + ebp*4 - 4]
sub ecx, dword [edx + 0x58]
fstp qword [eax + 8]
mov edx, dword [esp + 0x80]
add ecx, edi
add ecx, dword [esp + 0x40]
mov dword [eax], ebp
mov ebp, dword [esp + 0x74]
mov dword [eax + 0x20], ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov ecx, ebp
sub ecx, ebx
add ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x78]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], ebp
mov dword [eax + 0x1c], edx
mov dword [eax + 0x24], ecx
jmp 0x4882be
xor eax, eax
mov ecx, dword [esi + 0x3c]
push eax
call fcn.00489e40
mov edx, dword [esp + 0x54]
add dword [esp + 0x6c], edx
mov edi, dword [esp + 0x7c]
sub ebx, 1
mov dword [esp + 0x78], ebx
jne 0x488210
add ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x64]
add dword [esp + 0x68], eax
sub dword [esp + 0x70], 1
mov dword [esp + 0x74], ebp
jne 0x4881d0
mov ecx, dword [esi]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx + 0x34]
mov ecx, dword [edx + 0x24]
inc eax
cmp eax, dword [ecx + 0x14]
mov dword [esp + 0x28], eax
jle 0x4880c0
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret