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

Disassembly:
sub esp, 0x110
mov ecx, dword [esp + 0x114]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x124]
lea eax, [esp + 0xf4]
push edi
push eax
push esi
push ecx
call fcn.004e7460
mov edi, dword [esi]
add esp, 0xc
xor esi, esi
lea eax, [edi + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
dec eax
mov ebp, eax
mov eax, edi
cdq
sub eax, edx
mov dword [esp + 0x10], ebp
sar eax, 1
test eax, eax
jle 0x4fc2bb
mov ecx, dword [esp + 0x128]
lea edx, [esp + 0x78]
add ecx, 6
mov esi, eax
xor ebp, ebp
xor ebx, ebx
mov bp, word [ecx]
mov bx, word [ecx - 2]
shl ebp, 0x10
or ebx, ebp
add ecx, 4
mov dword [edx], ebx
add edx, 4
dec eax
jne 0x4fc29c
mov ebp, dword [esp + 0x10]
mov eax, edi
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
je 0x4fc2de
mov eax, dword [esp + 0x128]
xor edx, edx
mov dx, word [eax + esi*4 + 4]
mov dword [esp + esi*4 + 0x78], edx
inc esi
mov ebx, dword [esp + 0x28]
cmp esi, ebx
jge 0x4fc2f2
mov ecx, ebx
lea edi, [esp + esi*4 + 0x78]
sub ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xf8]
xor esi, esi
mov eax, edi
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x4fc32d
lea ecx, [esp + esi*4 + 0xfe]
xor edx, edx
xor ebx, ebx
mov dx, word [ecx]
mov bx, word [ecx - 2]
shl edx, 0x10
or edx, ebx
mov dword [esp + esi*4 + 0x98], edx
inc esi
cmp esi, eax
jl 0x4fc306
mov ebx, dword [esp + 0x28]
mov eax, edi
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
je 0x4fc34f
xor eax, eax
mov ax, word [esp + esi*4 + 0xfc]
mov dword [esp + esi*4 + 0x98], eax
inc esi
cmp esi, ebx
jge 0x4fc362
mov ecx, ebx
lea edi, [esp + esi*4 + 0x98]
sub ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
test ebx, ebx
jle 0x4fc370
mov ecx, ebx
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
cmp ebx, 1
mov dword [esp + 0x38], 1
jle 0x4fc388
lea ecx, [ebx - 1]
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
cmp ebx, 5
jne 0x4fcb21
mov edx, ebp
xor esi, esi
test edx, edx
jl 0x4fc3b4
mov eax, dword [esp + edx*4 + 0x98]
mov ecx, dword [esp + edx*4 + 0x78]
cmp eax, ecx
jb 0x4fc3b4
jbe 0x4fc3af
mov esi, 1
dec edx
test esi, esi
je 0x4fc395
test esi, esi
jne 0x4fc59f
lea esi, [esp + 0xd8]
lea ebx, [esp + 0x98]
neg esi
mov dword [esp + 0x30], esi
lea esi, [esp + 0x38]
neg esi
mov dword [esp + 0x2c], esi
lea esi, [esp + 0xb8]
neg ebx
neg esi
lea edi, [esp + 0x98]
lea eax, [esp + 0x38]
lea edx, [esp + 0xd8]
lea ecx, [esp + 0xb8]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], esi
test ebp, ebp
jle 0x4fc44a
mov ebx, dword [esp + 0x10]
lea esi, [edx + ebp*4]
mov ebp, edi
mov dword [esp + 0x24], ebx
sub ebp, edx
mov dword [esp + 0x18], ebp
jmp 0x4fc423
mov ebp, dword [esp + 0x18]
mov ebx, dword [ebp + esi]
sub esi, 4
add ebx, ebx
mov dword [esi + 4], ebx
mov ebp, dword [ebp + esi]
shr ebp, 0x1f
or ebp, ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 4], ebp
dec ebx
mov dword [esp + 0x24], ebx
jne 0x4fc41f
mov ebx, dword [esp + 0x34]
mov esi, dword [edi]
shl esi, 1
mov dword [edx], esi
mov esi, dword [eax + 0x10]
add esi, esi
mov dword [ecx + 0x10], esi
mov ebp, dword [eax + 0xc]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 0x10], ebp
mov esi, dword [eax + 0xc]
add esi, esi
mov dword [ecx + 0xc], esi
mov ebp, dword [eax + 8]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 0xc], ebp
mov esi, dword [eax + 8]
add esi, esi
mov dword [ecx + 8], esi
mov ebp, dword [eax + 4]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 8], ebp
mov esi, dword [eax + 4]
add esi, esi
mov dword [ecx + 4], esi
mov ebp, dword [eax]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 4], ebp
mov esi, dword [eax]
shl esi, 1
mov dword [ecx], esi
mov esi, edi
mov ebp, ebx
mov ebx, dword [esp + 0x30]
mov edi, edx
mov edx, esi
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x2c]
mov esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov ecx, esi
mov dword [esp + 0x34], ebx
lea esi, [ebp*4]
cmp dword [esi + edx], 0
jl 0x4fc542
add esi, edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], esi
mov ebp, dword [esp + 0x20]
test ebp, ebp
jl 0x4fc532
mov ebp, dword [esi]
mov dword [esp + 0x18], ebp
lea ebp, [esp + ebx + 0x78]
mov esi, dword [ebp + esi]
mov ebp, dword [esp + 0x18]
cmp ebp, esi
jb 0x4fc532
jbe 0x4fc516
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
dec esi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x24]
sub esi, 4
test ebp, ebp
mov dword [esp + 0x24], esi
je 0x4fc4ee
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
test esi, esi
je 0x4fc406
lea eax, [esp + 0xd8]
cmp edx, eax
jne 0x4fc59b
test ebp, ebp
jl 0x4fc564
lea ecx, [ebp + 1]
lea esi, [esp + 0xd8]
lea edi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov ebp, dword [esp + 0x10]
mov edx, 1
xor esi, esi
mov eax, dword [esp + esi + 0x38]
mov edi, dword [esp + esi + 0x58]
add edi, eax
mov ecx, edi
mov dword [esp + esi + 0x58], edi
cmp ecx, eax
jae 0x4fc5d5
cmp edx, 5
mov eax, edx
jge 0x4fc5d5
lea ecx, [esp + esi + 0x5c]
mov edi, dword [ecx]
inc edi
mov dword [ecx], edi
jne 0x4fc5d5
inc eax
add ecx, 4
cmp eax, 5
jl 0x4fc5c5
add esi, 4
inc edx
lea eax, [edx - 1]
cmp eax, 5
jl 0x4fc5a6
test ebp, ebp
jl 0x4fc65b
xor ecx, ecx
mov edi, 1
lea ebx, [esp + 0x78]
mov dword [esp + 0x14], ecx
mov eax, dword [ebx]
mov edx, dword [esp + ecx + 0x98]
mov esi, eax
sub esi, edx
cmp esi, eax
jbe 0x4fc62e
cmp edi, ebp
mov edx, edi
jg 0x4fc62a
lea eax, [esp + ecx + 0x7c]
mov ecx, dword [eax]
test ecx, ecx
lea ebp, [ecx - 1]
mov dword [eax], ebp
jne 0x4fc626
mov ecx, dword [esp + 0x10]
inc edx
add eax, 4
cmp edx, ecx
jle 0x4fc60f
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc edi
mov dword [ebx], esi
add ecx, 4
add ebx, 4
lea edx, [edi - 1]
mov dword [esp + 0x14], ecx
cmp edx, ebp
jle 0x4fc5f4
test ebp, ebp
jne 0x4fc65b
mov eax, dword [esp + 0x78]
cmp eax, 1
je 0x4fda37
test eax, eax
je 0x4fd318
mov edx, ebp
xor esi, esi
test edx, edx
jl 0x4fc67e
mov eax, dword [esp + edx*4 + 0x98]
mov ecx, dword [esp + edx*4 + 0x78]
cmp eax, ecx
jb 0x4fc67e
jbe 0x4fc679
mov esi, 1
dec edx
test esi, esi
je 0x4fc65f
test esi, esi
je 0x4fc59f
mov edi, dword [esp + 0x3c]
test byte [esp + 0x98], 1
jne 0x4fc760
mov ebx, dword [esp + 0x38]
test bl, 1
jne 0x4fc760
test ebp, ebp
jle 0x4fc6cb
lea eax, [esp + 0x98]
mov edx, ebp
mov esi, dword [eax]
add eax, 4
shr esi, 1
mov dword [eax - 4], esi
mov ecx, esi
mov esi, dword [eax]
shl esi, 0x1f
or esi, ecx
dec edx
mov dword [eax - 4], esi
jne 0x4fc6b2
mov eax, dword [esp + ebp*4 + 0x98]
shr eax, 1
mov dword [esp + ebp*4 + 0x98], eax
mov eax, edi
shr ebx, 1
shl eax, 0x1f
or ebx, eax
mov eax, dword [esp + 0x40]
mov ecx, eax
mov edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], ebx
shr edi, 1
shl ecx, 0x1f
or edi, ecx
mov ecx, eax
shr edx, 1
shl ecx, 0x1f
or edx, ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edx
mov edx, eax
mov eax, dword [esp + 0x48]
mov ecx, eax
shr edx, 1
shl ecx, 0x1f
or edx, ecx
mov ecx, ebp
shr eax, 1
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
xor esi, esi
test ecx, ecx
jl 0x4fc74f
mov eax, dword [esp + ecx*4 + 0x98]
mov edx, dword [esp + ecx*4 + 0x78]
cmp eax, edx
jb 0x4fc74f
jbe 0x4fc745
mov esi, 1
jmp 0x4fc74a
test eax, eax
jne 0x4fc74a
dec ebp
dec ecx
test esi, esi
je 0x4fc729
test esi, esi
mov dword [esp + 0x10], ebp
jne 0x4fc68a
jmp 0x4fc59f
mov edx, ebp
xor esi, esi
test edx, edx
jl 0x4fc783
mov eax, dword [esp + edx*4 + 0x78]
mov ecx, dword [esp + edx*4 + 0x98]
cmp eax, ecx
jb 0x4fc783
jbe 0x4fc77e
mov esi, 1
dec edx
test esi, esi
je 0x4fc764
test esi, esi
jne 0x4fc966
lea esi, [esp + 0xd8]
lea ebx, [esp + 0x78]
neg esi
mov dword [esp + 0x30], esi
lea esi, [esp + 0x58]
neg esi
mov dword [esp + 0x34], esi
lea esi, [esp + 0xb8]
neg ebx
neg esi
lea edi, [esp + 0x78]
lea eax, [esp + 0x58]
lea edx, [esp + 0xd8]
lea ecx, [esp + 0xb8]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], esi
test ebp, ebp
jle 0x4fc811
mov ebx, dword [esp + 0x10]
lea esi, [edx + ebp*4]
mov ebp, edi
mov dword [esp + 0x14], ebx
sub ebp, edx
mov dword [esp + 0x18], ebp
jmp 0x4fc7ec
mov ebp, dword [esp + 0x18]
mov ebx, dword [esi + ebp]
sub esi, 4
add ebx, ebx
mov dword [esi + 4], ebx
mov ebp, dword [esi + ebp]
shr ebp, 0x1f
or ebp, ebx
mov ebx, dword [esp + 0x14]
mov dword [esi + 4], ebp
dec ebx
mov dword [esp + 0x14], ebx
jne 0x4fc7e8
mov ebx, dword [esp + 0x2c]
mov esi, dword [edi]
shl esi, 1
mov dword [edx], esi
mov esi, dword [eax + 0x10]
add esi, esi
mov dword [ecx + 0x10], esi
mov ebp, dword [eax + 0xc]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 0x10], ebp
mov esi, dword [eax + 0xc]
add esi, esi
mov dword [ecx + 0xc], esi
mov ebp, dword [eax + 8]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 0xc], ebp
mov esi, dword [eax + 8]
add esi, esi
mov dword [ecx + 8], esi
mov ebp, dword [eax + 4]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 8], ebp
mov esi, dword [eax + 4]
add esi, esi
mov dword [ecx + 4], esi
mov ebp, dword [eax]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 4], ebp
mov esi, dword [eax]
shl esi, 1
mov dword [ecx], esi
mov esi, edi
mov ebp, ebx
mov ebx, dword [esp + 0x30]
mov edi, edx
mov edx, esi
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x34]
mov esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, esi
mov dword [esp + 0x2c], ebx
lea esi, [ebp*4]
cmp dword [esi + edx], 0
jl 0x4fc90c
add esi, edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0x20]
test ebp, ebp
jl 0x4fc8fc
mov ebp, dword [esi]
mov dword [esp + 0x18], ebp
lea ebp, [esp + ebx + 0x98]
mov esi, dword [ebp + esi]
mov ebp, dword [esp + 0x18]
cmp ebp, esi
jb 0x4fc8fc
jbe 0x4fc8e0
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
dec esi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x14]
sub esi, 4
test ebp, ebp
mov dword [esp + 0x14], esi
je 0x4fc8b5
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
test esi, esi
je 0x4fc7cf
lea eax, [esp + 0xd8]
cmp edx, eax
jne 0x4fc962
test ebp, ebp
jl 0x4fc92b
lea ecx, [ebp + 1]
lea esi, [esp + 0xd8]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov ebp, dword [esp + 0x10]
mov edx, 1
xor esi, esi
mov eax, dword [esp + esi + 0x58]
mov edi, dword [esp + esi + 0x38]
add edi, eax
mov ecx, edi
mov dword [esp + esi + 0x38], edi
cmp ecx, eax
jae 0x4fc99c
cmp edx, 5
mov eax, edx
jge 0x4fc99c
lea ecx, [esp + esi + 0x3c]
mov edi, dword [ecx]
inc edi
mov dword [ecx], edi
jne 0x4fc99c
inc eax
add ecx, 4
cmp eax, 5
jl 0x4fc98c
add esi, 4
inc edx
lea eax, [edx - 1]
cmp eax, 5
jl 0x4fc96d
test ebp, ebp
jl 0x4fca28
xor ecx, ecx
mov edi, 1
lea ebx, [esp + 0x98]
mov dword [esp + 0x14], ecx
mov eax, dword [ebx]
mov edx, dword [esp + ecx + 0x78]
mov esi, eax
sub esi, edx
cmp esi, eax
jbe 0x4fc9f4
cmp edi, ebp
mov edx, edi
jg 0x4fc9f4
lea eax, [esp + ecx + 0x9c]
mov ecx, dword [eax]
test ecx, ecx
lea ebp, [ecx - 1]
mov dword [eax], ebp
jne 0x4fc9f0
mov ecx, dword [esp + 0x10]
inc edx
add eax, 4
cmp edx, ecx
jle 0x4fc9d9
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc edi
mov dword [ebx], esi
add ecx, 4
lea edx, [edi - 1]
add ebx, 4
cmp edx, ebp
mov dword [esp + 0x14], ecx
jle 0x4fc9be
test ebp, ebp
jne 0x4fca28
mov eax, dword [esp + 0x98]
cmp eax, 1
je 0x4fdb11
test eax, eax
je 0x4fdb7b
mov edx, ebp
xor esi, esi
test edx, edx
jl 0x4fca4b
mov eax, dword [esp + edx*4 + 0x78]
mov ecx, dword [esp + edx*4 + 0x98]
cmp eax, ecx
jb 0x4fca4b
jbe 0x4fca46
mov esi, 1
dec edx
test esi, esi
je 0x4fca2c
test esi, esi
je 0x4fc966
mov edi, dword [esp + 0x5c]
test byte [esp + 0x78], 1
jne 0x4fc391
mov ebx, dword [esp + 0x58]
test bl, 1
jne 0x4fc391
test ebp, ebp
jle 0x4fca92
lea eax, [esp + 0x78]
mov edx, ebp
mov esi, dword [eax]
add eax, 4
shr esi, 1
mov dword [eax - 4], esi
mov ecx, esi
mov esi, dword [eax]
shl esi, 0x1f
or esi, ecx
dec edx
mov dword [eax - 4], esi
jne 0x4fca79
mov eax, dword [esp + ebp*4 + 0x78]
shr eax, 1
mov dword [esp + ebp*4 + 0x78], eax
mov eax, edi
shr ebx, 1
shl eax, 0x1f
or ebx, eax
mov eax, dword [esp + 0x60]
mov ecx, eax
mov edx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x58], ebx
shr edi, 1
shl ecx, 0x1f
or edi, ecx
mov ecx, eax
shr edx, 1
shl ecx, 0x1f
or edx, ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edx
mov edx, eax
mov eax, dword [esp + 0x68]
mov ecx, eax
shr edx, 1
shl ecx, 0x1f
or edx, ecx
mov ecx, ebp
shr eax, 1
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
xor esi, esi
test ecx, ecx
jl 0x4fcb10
mov eax, dword [esp + ecx*4 + 0x78]
mov edx, dword [esp + ecx*4 + 0x98]
cmp eax, edx
jb 0x4fcb10
jbe 0x4fcb06
mov esi, 1
jmp 0x4fcb0b
test eax, eax
jne 0x4fcb0b
dec ebp
dec ecx
test esi, esi
je 0x4fcaea
test esi, esi
mov dword [esp + 0x10], ebp
jne 0x4fca57
jmp 0x4fc966
cmp ebx, 6
jne 0x4fd332
mov edx, ebp
xor esi, esi
test edx, edx
jl 0x4fcb4d
mov eax, dword [esp + edx*4 + 0x98]
mov ecx, dword [esp + edx*4 + 0x78]
cmp eax, ecx
jb 0x4fcb4d
jbe 0x4fcb48
mov esi, 1
dec edx
test esi, esi
je 0x4fcb2e
test esi, esi
jne 0x4fcd53
lea esi, [esp + 0xd8]
lea ebx, [esp + 0x98]
neg esi
mov dword [esp + 0x30], esi
lea esi, [esp + 0x38]
neg esi
mov dword [esp + 0x34], esi
lea esi, [esp + 0xb8]
neg ebx
neg esi
lea edi, [esp + 0x98]
lea eax, [esp + 0x38]
lea edx, [esp + 0xd8]
lea ecx, [esp + 0xb8]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], esi
test ebp, ebp
jle 0x4fcbe1
mov ebx, dword [esp + 0x10]
lea esi, [edx + ebp*4]
mov ebp, edi
mov dword [esp + 0x14], ebx
sub ebp, edx
mov dword [esp + 0x18], ebp
jmp 0x4fcbbc
mov ebp, dword [esp + 0x18]
mov ebx, dword [esi + ebp]
sub esi, 4
add ebx, ebx
mov dword [esi + 4], ebx
mov ebp, dword [esi + ebp]
shr ebp, 0x1f
or ebp, ebx
mov ebx, dword [esp + 0x14]
mov dword [esi + 4], ebp
dec ebx
mov dword [esp + 0x14], ebx
jne 0x4fcbb8
mov ebx, dword [esp + 0x2c]
mov esi, dword [edi]
shl esi, 1
mov dword [edx], esi
mov esi, dword [eax + 0x14]
add esi, esi
mov dword [ecx + 0x14], esi
mov ebp, dword [eax + 0x10]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 0x14], ebp
mov esi, dword [eax + 0x10]
add esi, esi
mov dword [ecx + 0x10], esi
mov ebp, dword [eax + 0xc]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 0x10], ebp
mov esi, dword [eax + 0xc]
add esi, esi
mov dword [ecx + 0xc], esi
mov ebp, dword [eax + 8]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 0xc], ebp
mov esi, dword [eax + 8]
add esi, esi
mov dword [ecx + 8], esi
mov ebp, dword [eax + 4]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 8], ebp
mov esi, dword [eax + 4]
add esi, esi
mov dword [ecx + 4], esi
mov ebp, dword [eax]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 4], ebp
mov esi, dword [eax]
shl esi, 1
mov dword [ecx], esi
mov esi, edi
mov ebp, ebx
mov ebx, dword [esp + 0x30]
mov edi, edx
mov edx, esi
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x34]
mov esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, esi
mov dword [esp + 0x2c], ebx
lea esi, [ebp*4]
cmp dword [esi + edx], 0
jl 0x4fcceb
add esi, edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0x20]
test ebp, ebp
jl 0x4fccdb
mov ebp, dword [esi]
mov dword [esp + 0x18], ebp
lea ebp, [esp + ebx + 0x78]
mov esi, dword [esi + ebp]
mov ebp, dword [esp + 0x18]
cmp ebp, esi
jb 0x4fccdb
jbe 0x4fccbf
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
dec esi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x14]
sub esi, 4
test ebp, ebp
mov dword [esp + 0x14], esi
je 0x4fcc98
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
test esi, esi
je 0x4fcb9f
lea eax, [esp + 0xd8]
cmp edx, eax
jne 0x4fcd4f
test ebp, ebp
jl 0x4fcd0d
lea ecx, [ebp + 1]
lea esi, [esp + 0xd8]
lea edi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov ebp, dword [esp + 0x10]
mov edx, 1
xor esi, esi
mov eax, dword [esp + esi + 0x38]
mov edi, dword [esp + esi + 0x58]
add edi, eax
mov ecx, edi
mov dword [esp + esi + 0x58], edi
cmp ecx, eax
jae 0x4fcd89
cmp edx, 6
mov eax, edx
jge 0x4fcd89
lea ecx, [esp + esi + 0x5c]
mov edi, dword [ecx]
inc edi
mov dword [ecx], edi
jne 0x4fcd89
inc eax
add ecx, 4
cmp eax, 6
jl 0x4fcd79
add esi, 4
inc edx
lea ecx, [edx - 1]
cmp ecx, 6
jl 0x4fcd5a
test ebp, ebp
jl 0x4fce0f
xor ecx, ecx
mov edi, 1
lea ebx, [esp + 0x78]
mov dword [esp + 0x14], ecx
mov eax, dword [ebx]
mov edx, dword [esp + ecx + 0x98]
mov esi, eax
sub esi, edx
cmp esi, eax
jbe 0x4fcde2
cmp edi, ebp
mov edx, edi
jg 0x4fcdde
lea eax, [esp + ecx + 0x7c]
mov ecx, dword [eax]
test ecx, ecx
lea ebp, [ecx - 1]
mov dword [eax], ebp
jne 0x4fcdda
mov ecx, dword [esp + 0x10]
inc edx
add eax, 4
cmp edx, ecx
jle 0x4fcdc3
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc edi
mov dword [ebx], esi
add ecx, 4
add ebx, 4
lea edx, [edi - 1]
mov dword [esp + 0x14], ecx
cmp edx, ebp
jle 0x4fcda8
test ebp, ebp
jne 0x4fce0f
mov eax, dword [esp + 0x78]
cmp eax, 1
je 0x4fda37
test eax, eax
je 0x4fd318
mov edx, ebp
xor esi, esi
test edx, edx
jl 0x4fce32
mov eax, dword [esp + edx*4 + 0x98]
mov ecx, dword [esp + edx*4 + 0x78]
cmp eax, ecx
jb 0x4fce32
jbe 0x4fce2d
mov esi, 1
dec edx
test esi, esi
je 0x4fce13
test esi, esi
je 0x4fcd53
mov edi, dword [esp + 0x3c]
test byte [esp + 0x98], 1
jne 0x4fcf27
mov ebx, dword [esp + 0x38]
test bl, 1
jne 0x4fcf27
test ebp, ebp
jle 0x4fce7f
lea eax, [esp + 0x98]
mov edx, ebp
mov esi, dword [eax]
add eax, 4
shr esi, 1
mov dword [eax - 4], esi
mov ecx, esi
mov esi, dword [eax]
shl esi, 0x1f
or esi, ecx
dec edx
mov dword [eax - 4], esi
jne 0x4fce66
mov eax, dword [esp + ebp*4 + 0x98]
shr eax, 1
mov dword [esp + ebp*4 + 0x98], eax
mov eax, edi
shr ebx, 1
shl eax, 0x1f
or ebx, eax
mov eax, dword [esp + 0x40]
mov ecx, eax
mov edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], ebx
shr edi, 1
shl ecx, 0x1f
or edi, ecx
mov ecx, eax
shr edx, 1
shl ecx, 0x1f
or edx, ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edx
mov edx, eax
mov eax, dword [esp + 0x48]
mov ecx, eax
shr edx, 1
shl ecx, 0x1f
or edx, ecx
mov dword [esp + 0x44], edx
mov edx, eax
mov eax, dword [esp + 0x4c]
mov ecx, eax
shr edx, 1
shl ecx, 0x1f
or edx, ecx
mov ecx, ebp
shr eax, 1
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
xor esi, esi
test ecx, ecx
jl 0x4fcf16
mov eax, dword [esp + ecx*4 + 0x98]
mov edx, dword [esp + ecx*4 + 0x78]
cmp eax, edx
jb 0x4fcf16
jbe 0x4fcf0c
mov esi, 1
jmp 0x4fcf11
test eax, eax
jne 0x4fcf11
dec ebp
dec ecx
test esi, esi
je 0x4fcef0
test esi, esi
mov dword [esp + 0x10], ebp
jne 0x4fce3e
jmp 0x4fcd53
mov edx, ebp
xor esi, esi
test edx, edx
jl 0x4fcf4a
mov eax, dword [esp + edx*4 + 0x78]
mov ecx, dword [esp + edx*4 + 0x98]
cmp eax, ecx
jb 0x4fcf4a
jbe 0x4fcf45
mov esi, 1
dec edx
test esi, esi
je 0x4fcf2b
test esi, esi
jne 0x4fd14a
lea esi, [esp + 0xd8]
lea ebx, [esp + 0x78]
neg esi
mov dword [esp + 0x30], esi
lea esi, [esp + 0x58]
neg esi
mov dword [esp + 0x34], esi
lea esi, [esp + 0xb8]
neg ebx
neg esi
lea edi, [esp + 0x78]
lea eax, [esp + 0x58]
lea edx, [esp + 0xd8]
lea ecx, [esp + 0xb8]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], esi
test ebp, ebp
jle 0x4fcfd8
mov ebx, dword [esp + 0x10]
lea esi, [edx + ebp*4]
mov ebp, edi
mov dword [esp + 0x14], ebx
sub ebp, edx
mov dword [esp + 0x18], ebp
jmp 0x4fcfb3
mov ebp, dword [esp + 0x18]
mov ebx, dword [esi + ebp]
sub esi, 4
add ebx, ebx
mov dword [esi + 4], ebx
mov ebp, dword [esi + ebp]
shr ebp, 0x1f
or ebp, ebx
mov ebx, dword [esp + 0x14]
mov dword [esi + 4], ebp
dec ebx
mov dword [esp + 0x14], ebx
jne 0x4fcfaf
mov ebx, dword [esp + 0x2c]
mov esi, dword [edi]
shl esi, 1
mov dword [edx], esi
mov esi, dword [eax + 0x14]
add esi, esi
mov dword [ecx + 0x14], esi
mov ebp, dword [eax + 0x10]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 0x14], ebp
mov esi, dword [eax + 0x10]
add esi, esi
mov dword [ecx + 0x10], esi
mov ebp, dword [eax + 0xc]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 0x10], ebp
mov esi, dword [eax + 0xc]
add esi, esi
mov dword [ecx + 0xc], esi
mov ebp, dword [eax + 8]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 0xc], ebp
mov esi, dword [eax + 8]
add esi, esi
mov dword [ecx + 8], esi
mov ebp, dword [eax + 4]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 8], ebp
mov esi, dword [eax + 4]
add esi, esi
mov dword [ecx + 4], esi
mov ebp, dword [eax]
shr ebp, 0x1f
or ebp, esi
mov dword [ecx + 4], ebp
mov esi, dword [eax]
shl esi, 1
mov dword [ecx], esi
mov esi, edi
mov ebp, ebx
mov ebx, dword [esp + 0x30]
mov edi, edx
mov edx, esi
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x34]
mov esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, esi
mov dword [esp + 0x2c], ebx
lea esi, [ebp*4]
cmp dword [esi + edx], 0
jl 0x4fd0e5
add esi, edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0x20]
test ebp, ebp
jl 0x4fd0d5
mov ebp, dword [esi]
mov dword [esp + 0x18], ebp
lea ebp, [esp + ebx + 0x98]
mov esi, dword [esi + ebp]
mov ebp, dword [esp + 0x18]
cmp ebp, esi
jb 0x4fd0d5
jbe 0x4fd0b9
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
dec esi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x14]
sub esi, 4
test ebp, ebp
mov dword [esp + 0x14], esi
je 0x4fd08f
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
test esi, esi
je 0x4fcf96
lea eax, [esp + 0xd8]
cmp edx, eax
jne 0x4fd146
test ebp, ebp
jl 0x4fd104
lea ecx, [ebp + 1]
lea esi, [esp + 0xd8]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
mov ebp, dword [esp + 0x10]
mov edx, 1
xor esi, esi
mov eax, dword [esp + esi + 0x58]
mov edi, dword [esp + esi + 0x38]
add edi, eax
mov ecx, edi
mov dword [esp + esi + 0x38], edi
cmp ecx, eax
jae 0x4fd180
cmp edx, 6
mov eax, edx
jge 0x4fd180
lea ecx, [esp + esi + 0x3c]
mov edi, dword [ecx]
inc edi
mov dword [ecx], edi
jne 0x4fd180
inc eax
add ecx, 4
cmp eax, 6
jl 0x4fd170
add esi, 4
inc edx
lea ecx, [edx - 1]
cmp ecx, 6
jl 0x4fd151
test ebp, ebp
jl 0x4fd20c
xor ecx, ecx
mov edi, 1
lea ebx, [esp + 0x98]
mov dword [esp + 0x14], ecx
mov eax, dword [ebx]
mov edx, dword [esp + ecx + 0x78]
mov esi, eax
sub esi, edx
cmp esi, eax
jbe 0x4fd1d8
cmp edi, ebp
mov edx, edi
jg 0x4fd1d8
lea eax, [esp + ecx + 0x9c]
mov ecx, dword [eax]
test ecx, ecx
lea ebp, [ecx - 1]
mov dword [eax], ebp
jne 0x4fd1d4
mov ecx, dword [esp + 0x10]
inc edx
add eax, 4
cmp edx, ecx
jle 0x4fd1bd
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc edi
mov dword [ebx], esi
add ecx, 4
lea edx, [edi - 1]
add ebx, 4
cmp edx, ebp
mov dword [esp + 0x14], ecx
jle 0x4fd1a2
test ebp, ebp
jne 0x4fd20c
mov eax, dword [esp + 0x98]
cmp eax, 1
je 0x4fdb11
test eax, eax
je 0x4fdb7b
mov edx, ebp
xor esi, esi
test edx, edx
jl 0x4fd22f
mov eax, dword [esp + edx*4 + 0x78]
mov ecx, dword [esp + edx*4 + 0x98]
cmp eax, ecx
jb 0x4fd22f
jbe 0x4fd22a
mov esi, 1
dec edx
test esi, esi
je 0x4fd210
test esi, esi
je 0x4fd14a
mov edi, dword [esp + 0x5c]
test byte [esp + 0x78], 1
jne 0x4fcb2a
mov ebx, dword [esp + 0x58]
test bl, 1
jne 0x4fcb2a
test ebp, ebp
jle 0x4fd276
lea eax, [esp + 0x78]
mov edx, ebp
mov esi, dword [eax]
add eax, 4
shr esi, 1
mov dword [eax - 4], esi
mov ecx, esi
mov esi, dword [eax]
shl esi, 0x1f
or esi, ecx
dec edx
mov dword [eax - 4], esi
jne 0x4fd25d
mov eax, dword [esp + ebp*4 + 0x78]
shr eax, 1
mov dword [esp + ebp*4 + 0x78], eax
mov eax, edi
shr ebx, 1
shl eax, 0x1f
or ebx, eax
mov eax, dword [esp + 0x60]
mov ecx, eax
mov edx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x58], ebx
shr edi, 1
shl ecx, 0x1f
or edi, ecx
mov ecx, eax
shr edx, 1
shl ecx, 0x1f
or edx, ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edx
mov edx, eax
mov eax, dword [esp + 0x68]
mov ecx, eax
shr edx, 1
shl ecx, 0x1f
or edx, ecx
mov dword [esp + 0x64], edx
mov edx, eax
mov eax, dword [esp + 0x6c]
mov ecx, eax
shr edx, 1
shl ecx, 0x1f
or edx, ecx
mov ecx, ebp
shr eax, 1
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
xor esi, esi
test ecx, ecx
jl 0x4fd307
mov eax, dword [esp + ecx*4 + 0x78]
mov edx, dword [esp + ecx*4 + 0x98]
cmp eax, edx
jb 0x4fd307
jbe 0x4fd2fd
mov esi, 1
jmp 0x4fd302
test eax, eax
jne 0x4fd302
dec ebp
dec ecx
test esi, esi
je 0x4fd2e1
test esi, esi
mov dword [esp + 0x10], ebp
jne 0x4fd23b
jmp 0x4fd14a
mov edx, dword [esp + 0x130]
xor eax, eax
mov dword [edx], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov edx, ebp
xor esi, esi
test edx, edx
jl 0x4fd355
mov eax, dword [esp + edx*4 + 0x98]
mov ecx, dword [esp + edx*4 + 0x78]
cmp eax, ecx
jb 0x4fd355
jbe 0x4fd350
mov esi, 1
dec edx
test esi, esi
je 0x4fd336
test esi, esi
jne 0x4fd4f8
lea eax, [esp + 0xd8]
lea edx, [esp + 0x98]
neg eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x38]
neg eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0xb8]
neg edx
lea ecx, [esp + 0x38]
lea ebx, [esp + 0x98]
neg eax
mov dword [esp + 0x18], ecx
lea esi, [esp + 0xd8]
lea edi, [esp + 0xb8]
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], eax
test ebp, ebp
jle 0x4fd3e3
mov edx, ebx
lea eax, [esi + ebp*4]
sub edx, esi
mov dword [esp + 0x14], ebp
mov ecx, dword [eax + edx]
sub eax, 4
add ecx, ecx
mov dword [eax + 4], ecx
mov ebp, dword [eax + edx]
shr ebp, 0x1f
or ebp, ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ebp
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4fd3ba
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x28]
shl eax, 1
dec ecx
mov dword [esi], eax
test ecx, ecx
jle 0x4fd428
mov edx, dword [esp + 0x18]
lea eax, [edi + ecx*4]
sub edx, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + eax]
sub eax, 4
add ecx, ecx
mov dword [eax + 4], ecx
mov ebp, dword [edx + eax]
shr ebp, 0x1f
or ebp, ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ebp
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4fd3ff
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, ebx
shl ecx, 1
mov ebx, esi
mov dword [edi], ecx
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], edi
mov edi, eax
mov eax, dword [esi + ebp*4]
mov dword [esp + 0x24], edx
test eax, eax
mov dword [esp + 0x34], ecx
jl 0x4fd4bf
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0
lea eax, [ebx + ebp*4]
jmp 0x4fd47c
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jl 0x4fd4b3
mov ecx, dword [eax]
lea ebp, [esp + edx + 0x78]
mov ebp, dword [eax + ebp]
cmp ecx, ebp
jb 0x4fd4af
jbe 0x4fd49b
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x20]
sub eax, 4
dec ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4fd478
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4fd3ab
lea edx, [esp + 0xd8]
cmp esi, edx
jne 0x4fd4f8
test ebp, ebp
jl 0x4fd4e1
lea ecx, [ebp + 1]
lea esi, [esp + 0xd8]
lea edi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4fd54b
mov ecx, eax
lea esi, [esp + 0xb8]
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4fd54b
mov edx, 1
xor esi, esi
mov eax, dword [esp + esi + 0x38]
mov edi, dword [esp + esi + 0x58]
add edi, eax
mov ecx, edi
mov dword [esp + esi + 0x58], edi
cmp ecx, eax
jae 0x4fd53c
mov ecx, dword [esp + 0x28]
mov eax, edx
cmp edx, ecx
jge 0x4fd53c
mov edi, dword [esp + 0x28]
lea ecx, [esp + esi + 0x5c]
mov ebx, dword [ecx]
inc ebx
mov dword [ecx], ebx
jne 0x4fd53c
inc eax
add ecx, 4
cmp eax, edi
jl 0x4fd52d
mov ecx, dword [esp + 0x28]
add esi, 4
inc edx
lea eax, [edx - 1]
cmp eax, ecx
jl 0x4fd507
test ebp, ebp
jl 0x4fd5bb
xor ecx, ecx
mov edi, 1
lea ebx, [esp + 0x78]
mov dword [esp + 0x14], ecx
mov eax, dword [ebx]
mov edx, dword [esp + ecx + 0x98]
mov esi, eax
sub esi, edx
cmp esi, eax
jbe 0x4fd594
cmp edi, ebp
mov edx, edi
jg 0x4fd594
lea eax, [esp + ecx + 0x7c]
mov ecx, dword [eax]
test ecx, ecx
lea ebp, [ecx - 1]
mov dword [eax], ebp
jne 0x4fd590
mov ecx, dword [esp + 0x10]
inc edx
add eax, 4
cmp edx, ecx
jle 0x4fd579
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc edi
mov dword [ebx], esi
add ecx, 4
lea edx, [edi - 1]
add ebx, 4
cmp edx, ebp
mov dword [esp + 0x14], ecx
jle 0x4fd55e
test ebp, ebp
jne 0x4fd5bb
cmp dword [esp + 0x78], 1
je 0x4fda37
test ebp, ebp
mov eax, ebp
jl 0x4fd5d2
lea ecx, [esp + ebp*4 + 0x78]
cmp dword [ecx], 0
jne 0x4fd5d2
dec eax
sub ecx, 4
test eax, eax
jge 0x4fd5c5
test eax, eax
jl 0x4fdb7b
mov edx, ebp
xor esi, esi
test edx, edx
jl 0x4fd5fd
mov eax, dword [esp + edx*4 + 0x98]
mov ecx, dword [esp + edx*4 + 0x78]
cmp eax, ecx
jb 0x4fd5fd
jbe 0x4fd5f8
mov esi, 1
dec edx
test esi, esi
je 0x4fd5de
test esi, esi
je 0x4fd4f8
mov edi, dword [esp + 0x28]
test byte [esp + 0x98], 1
jne 0x4fd6bd
test byte [esp + 0x38], 1
jne 0x4fd6bd
test ebp, ebp
jle 0x4fd646
lea eax, [esp + 0x98]
mov edx, ebp
mov ecx, dword [eax]
add eax, 4
shr ecx, 1
mov dword [eax - 4], ecx
mov esi, dword [eax]
shl esi, 0x1f
or esi, ecx
dec edx
mov dword [eax - 4], esi
jne 0x4fd62f
mov ecx, dword [esp + ebp*4 + 0x98]
shr ecx, 1
mov dword [esp + ebp*4 + 0x98], ecx
lea ecx, [edi - 1]
test ecx, ecx
jle 0x4fd678
lea eax, [esp + 0x38]
mov edx, dword [eax]
add eax, 4
shr edx, 1
mov dword [eax - 4], edx
mov esi, dword [eax]
shl esi, 0x1f
or esi, edx
dec ecx
mov dword [eax - 4], esi
jne 0x4fd661
mov eax, dword [esp + edi*4 + 0x34]
mov edx, ebp
shr eax, 1
mov dword [esp + edi*4 + 0x34], eax
xor esi, esi
test edx, edx
jl 0x4fd6ac
mov eax, dword [esp + edx*4 + 0x98]
mov ecx, dword [esp + edx*4 + 0x78]
cmp eax, ecx
jb 0x4fd6ac
jbe 0x4fd6a2
mov esi, 1
jmp 0x4fd6a7
test eax, eax
jne 0x4fd6a7
dec ebp
dec edx
test esi, esi
je 0x4fd686
test esi, esi
mov dword [esp + 0x10], ebp
jne 0x4fd609
jmp 0x4fd4f8
mov edx, ebp
xor esi, esi
test edx, edx
jl 0x4fd6e0
mov eax, dword [esp + edx*4 + 0x78]
mov ecx, dword [esp + edx*4 + 0x98]
cmp eax, ecx
jb 0x4fd6e0
jbe 0x4fd6db
mov esi, 1
dec edx
test esi, esi
je 0x4fd6c1
test esi, esi
jne 0x4fd87f
lea eax, [esp + 0x58]
lea edx, [esp + 0x78]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xd8]
neg eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x58]
neg eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0xb8]
neg edx
neg eax
lea ebx, [esp + 0x78]
lea esi, [esp + 0xd8]
lea edi, [esp + 0xb8]
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], eax
test ebp, ebp
jle 0x4fd768
mov edx, ebx
lea eax, [esi + ebp*4]
sub edx, esi
mov dword [esp + 0x14], ebp
mov ecx, dword [eax + edx]
sub eax, 4
add ecx, ecx
mov dword [eax + 4], ecx
mov ebp, dword [eax + edx]
shr ebp, 0x1f
or ebp, ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ebp
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4fd73f
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [ebx]
mov eax, dword [esp + 0x28]
shl ecx, 1
mov dword [esi], ecx
lea ecx, [eax - 1]
test ecx, ecx
jle 0x4fd7af
mov edx, dword [esp + 0x18]
lea eax, [edi + ecx*4]
sub edx, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + edx]
sub eax, 4
add ecx, ecx
mov dword [eax + 4], ecx
mov ebp, dword [eax + edx]
shr ebp, 0x1f
or ebp, ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ebp
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4fd786
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov ecx, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
shl eax, 1
mov ecx, dword [esp + 0x30]
mov dword [edi], eax
mov eax, ebx
mov ebx, esi
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x30], edi
mov edi, eax
mov eax, dword [esi + ebp*4]
mov dword [esp + 0x24], edx
test eax, eax
mov dword [esp + 0x34], ecx
jl 0x4fd849
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0
lea eax, [ebx + ebp*4]
jmp 0x4fd803
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jl 0x4fd83d
mov ecx, dword [eax]
lea ebp, [esp + edx + 0x98]
mov ebp, dword [eax + ebp]
cmp ecx, ebp
jb 0x4fd839
jbe 0x4fd825
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x20]
sub eax, 4
dec ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4fd7ff
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4fd730
lea ecx, [esp + 0xd8]
cmp esi, ecx
jne 0x4fd87f
test ebp, ebp
jl 0x4fd868
lea ecx, [ebp + 1]
lea esi, [esp + 0xd8]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4fd87f
mov ecx, eax
lea esi, [esp + 0xb8]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x28]
test edi, edi
jle 0x4fd8c6
mov edx, 1
xor esi, esi
mov eax, dword [esp + esi + 0x58]
mov ebx, dword [esp + esi + 0x38]
add ebx, eax
mov ecx, ebx
mov dword [esp + esi + 0x38], ebx
cmp ecx, eax
jae 0x4fd8bb
cmp edx, edi
mov eax, edx
jge 0x4fd8bb
lea ecx, [esp + esi + 0x3c]
mov ebx, dword [ecx]
inc ebx
mov dword [ecx], ebx
jne 0x4fd8bb
inc eax
add ecx, 4
cmp eax, edi
jl 0x4fd8ac
add esi, 4
inc edx
lea eax, [edx - 1]
cmp eax, edi
jl 0x4fd88e
test ebp, ebp
jl 0x4fd93c
xor ecx, ecx
mov edi, 1
lea ebx, [esp + 0x98]
mov dword [esp + 0x14], ecx
mov eax, dword [ebx]
mov edx, dword [esp + ecx + 0x78]
mov esi, eax
sub esi, edx
cmp esi, eax
jbe 0x4fd912
cmp edi, ebp
mov edx, edi
jg 0x4fd912
lea eax, [esp + ecx + 0x9c]
mov ecx, dword [eax]
test ecx, ecx
lea ebp, [ecx - 1]
mov dword [eax], ebp
jne 0x4fd90e
mov ecx, dword [esp + 0x10]
inc edx
add eax, 4
cmp edx, ecx
jle 0x4fd8f7
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc edi
mov dword [ebx], esi
add ecx, 4
lea edx, [edi - 1]
add ebx, 4
cmp edx, ebp
mov dword [esp + 0x14], ecx
jle 0x4fd8dc
test ebp, ebp
jne 0x4fd93c
cmp dword [esp + 0x98], 1
je 0x4fdb11
test ebp, ebp
mov eax, ebp
jl 0x4fd956
lea ecx, [esp + ebp*4 + 0x98]
cmp dword [ecx], 0
jne 0x4fd956
dec eax
sub ecx, 4
test eax, eax
jge 0x4fd949
test eax, eax
jl 0x4fdb7b
mov edx, ebp
xor esi, esi
test edx, edx
jl 0x4fd981
mov eax, dword [esp + edx*4 + 0x78]
mov ecx, dword [esp + edx*4 + 0x98]
cmp eax, ecx
jb 0x4fd981
jbe 0x4fd97c
mov esi, 1
dec edx
test esi, esi
je 0x4fd962
test esi, esi
je 0x4fd87f
test byte [esp + 0x78], 1
jne 0x4fd332
test byte [esp + 0x58], 1
jne 0x4fd332
test ebp, ebp
jle 0x4fd9c0
lea eax, [esp + 0x78]
mov edx, ebp
mov ecx, dword [eax]
add eax, 4
shr ecx, 1
mov dword [eax - 4], ecx
mov esi, dword [eax]
shl esi, 0x1f
or esi, ecx
dec edx
mov dword [eax - 4], esi
jne 0x4fd9a9
mov ecx, dword [esp + ebp*4 + 0x78]
mov esi, dword [esp + 0x28]
shr ecx, 1
mov dword [esp + ebp*4 + 0x78], ecx
lea ecx, [esi - 1]
test ecx, ecx
jle 0x4fd9f0
lea eax, [esp + 0x58]
mov edx, dword [eax]
add eax, 4
shr edx, 1
mov dword [eax - 4], edx
mov edi, dword [eax]
shl edi, 0x1f
or edi, edx
dec ecx
mov dword [eax - 4], edi
jne 0x4fd9d9
mov ecx, dword [esp + esi*4 + 0x54]
lea eax, [esp + esi*4 + 0x54]
shr ecx, 1
mov dword [eax], ecx
mov edx, ebp
xor esi, esi
test edx, edx
jl 0x4fda26
mov eax, dword [esp + edx*4 + 0x78]
mov ecx, dword [esp + edx*4 + 0x98]
cmp eax, ecx
jb 0x4fda26
jbe 0x4fda1c
mov esi, 1
jmp 0x4fda21
test eax, eax
jne 0x4fda21
dec ebp
dec edx
test esi, esi
je 0x4fda00
test esi, esi
mov dword [esp + 0x10], ebp
jne 0x4fd989
jmp 0x4fd87f
mov eax, dword [esp + 0x128]
xor esi, esi
mov edi, dword [eax]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x4fda78
mov ecx, dword [esp + 0x128]
lea edx, [esp + 0x38]
add ecx, 6
mov esi, eax
xor ebx, ebx
xor ebp, ebp
mov bx, word [ecx]
mov bp, word [ecx - 2]
shl ebx, 0x10
or ebx, ebp
add ecx, 4
mov dword [edx], ebx
add edx, 4
dec eax
jne 0x4fda5d
mov eax, edi
mov ebx, dword [esp + 0x28]
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
je 0x4fda9f
mov eax, dword [esp + 0x128]
xor edx, edx
mov dx, word [eax + esi*4 + 4]
mov dword [esp + esi*4 + 0x38], edx
inc esi
cmp esi, ebx
jge 0x4fdaaf
mov ecx, ebx
lea edi, [esp + esi*4 + 0x38]
sub ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
test ebx, ebx
jle 0x4fdb11
xor ecx, ecx
mov edi, 1
lea ebx, [esp + 0x38]
mov dword [esp + 0x14], ecx
mov eax, dword [ebx]
mov ebp, dword [esp + ecx + 0x58]
mov esi, eax
sub esi, ebp
cmp esi, eax
jbe 0x4fdaf5
mov eax, dword [esp + 0x28]
mov edx, edi
cmp edi, eax
jge 0x4fdaf5
lea eax, [esp + ecx + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
lea ebp, [ecx - 1]
mov dword [eax], ebp
jne 0x4fdaf5
mov ecx, dword [esp + 0x28]
inc edx
add eax, 4
cmp edx, ecx
jl 0x4fdade
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
inc edi
mov dword [ebx], esi
add ecx, 4
add ebx, 4
lea edx, [edi - 1]
mov dword [esp + 0x14], ecx
cmp edx, eax
jl 0x4fdac2
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x12c]
test edx, edx
jle 0x4fdb40
lea eax, [esp + 0x38]
lea ecx, [esi + 6]
mov di, word [eax]
add eax, 4
mov word [ecx - 2], di
mov edi, dword [eax - 4]
shr edi, 0x10
mov word [ecx], di
add ecx, 4
dec edx
jne 0x4fdb27
mov ecx, dword [esp + 0x128]
mov eax, dword [ecx]
dec eax
js 0x4fdb5e
lea ecx, [esi + eax*2 + 4]
cmp word [ecx], 0
jne 0x4fdb5e
dec eax
sub ecx, 2
test eax, eax
jge 0x4fdb50
mov edx, dword [esp + 0x130]
inc eax
mov dword [esi], eax
xor eax, eax
mov dword [edx], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x130]
pop edi
pop esi
pop ebp
mov dword [eax], 0
xor eax, eax
pop ebx
add esp, 0x110
ret