Function at 0x486400
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x486409
mov eax, dword [ebp - 4]
add esp, 0xfffffec4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1003c], ebx
mov dword [ebp - 0x10040], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x486799
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x48670c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004216fc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov edi, dword [ebp - 8]
add edi, esi
mov eax, edi
sub eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp + 0x14]
je 0x4866c6
cmp dword [ebp + 0x10], 0
jne 0x48648f
cmp dword [ebp + 0xc], 0
jne 0x48648f
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x14]
xor edx, edx
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp edi, dword [ebp + 0x14]
jae 0x4865a4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, edi
xor edx, edx
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov byte [ebp - 0x35], 0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add eax, 0x10000
adc edx, 0
cmp edx, dword [ebp + 0x10]
jne 0x4864f2
cmp eax, dword [ebp + 0xc]
jae 0x48650d
jmp 0x4864f4
jge 0x48650d
push 0
lea edx, [ebp - 0x10036]
mov ecx, 0x10000
mov eax, ebx
call fcn.00486210
mov dword [ebp - 0x34], eax
jmp 0x486529
push 0
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x10036]
mov eax, ebx
call fcn.00486210
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], 1
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
push 0
lea edx, [ebp - 0x10036]
mov ecx, dword [ebp - 0x34]
mov eax, ebx
call fcn.00486290
mov eax, dword [ebp - 0x34]
xor edx, edx
add dword [ebp - 0x28], eax
adc dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x34]
xor edx, edx
add dword [ebp - 0x30], eax
adc dword [ebp - 0x2c], edx
cmp byte [ebp - 0x35], 0
je 0x4864c9
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
cmp edx, dword [ebp + 0x10]
jne 0x4866c6
cmp eax, dword [ebp + 0xc]
jne 0x4866c6
mov eax, dword [ebp - 8]
add eax, esi
sub eax, dword [ebp + 0x14]
cdq
push edx
push eax
mov dl, 2
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_SetEndOfFile_1
jmp 0x4866c6
cmp dword [ebp + 0x10], 0
jne 0x4865b5
cmp dword [ebp + 0xc], 0x10000
jae 0x4865d4
jmp 0x4865b7
jge 0x4865d4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push edx
push eax
mov eax, edi
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
jmp 0x4865e8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, 0x10000
sbb edx, 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
add eax, esi
sub eax, dword [ebp + 0x14]
xor edx, edx
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov byte [ebp - 0x35], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x24]
jne 0x486614
cmp eax, dword [ebp - 0x28]
jae 0x48663e
jmp 0x486616
jge 0x48663e
push dword [ebp - 0x24]
push dword [ebp - 0x28]
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
push 0
lea edx, [ebp - 0x10036]
mov ecx, 0x10000
mov eax, ebx
call fcn.00486210
mov dword [ebp - 0x34], eax
jmp 0x486685
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
push 0
mov ecx, dword [ebp - 0x28]
add ecx, 0x10000
sub ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x10036]
mov eax, ebx
call fcn.00486210
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
add eax, esi
sub eax, dword [ebp + 0x14]
xor edx, edx
add eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov byte [ebp - 0x35], 1
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
push 0
lea edx, [ebp - 0x10036]
mov ecx, dword [ebp - 0x34]
mov eax, ebx
call fcn.00486290
mov eax, dword [ebp - 0x34]
xor edx, edx
sub dword [ebp - 0x28], eax
sbb dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x34]
xor edx, edx
sub dword [ebp - 0x30], eax
sbb dword [ebp - 0x2c], edx
cmp byte [ebp - 0x35], 0
je 0x486602
push dword [ebp - 0x14]
push dword [ebp - 0x18]
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
push 0
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, ebx
call fcn.00486290
mov byte [ebp - 0x36], 0
test esi, esi
jbe 0x486702
push 0
lea edx, [ebp - 0x36]
mov ecx, 1
mov eax, ebx
call fcn.00486290
dec esi
test esi, esi
ja 0x4866ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48677b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4867a0
lea eax, [ebp - 0x10040]
mov edx, 2
call fcn.00404cc8
ret