Function at 0x1004068c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007004c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004073b
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x1004071f
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x10040703
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 1
jge 0x1004071d
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x44]
call fcn.1000f0fd
and dword [eax], 0
jmp 0x100406f8
jmp 0x10040736
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov eax, dword [eax]
and dword [eax + 0x10], 0
jmp 0x10040952
lea eax, [ebp + 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x10040764
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x10040952
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], 0x1f42
cmp dword [ebp - 0x5c], 0x775
jge 0x1004092d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x1000cb3c
call fcn.10054a3b
add esp, 0xc
push dword [ebp - 0x20]
lea ecx, [ebp - 0x84]
call fcn.1000f096
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
jmp 0x100407b2
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x100407d7
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x84]
call fcn.1000f0fd
push eax
push 0x1000cb38
call fcn.10054a3b
pop ecx
pop ecx
jmp 0x100407ab
lea ecx, [ebp - 0x78]
call fcn.10046d58
mov byte [ebp - 4], 1
and dword [ebp - 0x10], 0
and dword [ebp - 0x10], 0
jmp 0x100407f4
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jge 0x1004086c
push dword [ebp - 0x10]
lea ecx, [ebp - 0x84]
call fcn.1000f0fd
push eax
lea ecx, [ebp - 0x78]
call fcn.100268a6
test eax, eax
je 0x1004083e
push dword [ebp - 0x10]
lea ecx, [ebp - 0x84]
call fcn.1000f0fd
push eax
lea ecx, [ebp - 0x78]
call fcn.10046de5
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
jmp 0x1004085b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x84]
call fcn.1000f0fd
push eax
lea ecx, [ebp - 0x78]
call fcn.10046de5
mov dword [eax], 1
lea ecx, [ebp - 0x78]
call fcn.100264c9
cmp eax, dword [ebp - 0x2c]
jb 0x1004086a
jmp 0x1004086c
jmp 0x100407ed
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jg 0x100408e1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x84]
call fcn.1000f0fd
push eax
lea ecx, [ebp - 0x78]
call fcn.100268a6
test eax, eax
je 0x100408dd
push dword [ebp - 0x14]
lea ecx, [ebp - 0x84]
call fcn.1000f0fd
push eax
lea ecx, [ebp - 0x78]
call fcn.10046de5
cmp dword [eax], 1
jle 0x100408dd
push dword [ebp - 0x14]
lea ecx, [ebp - 0x84]
call fcn.1000f0fd
push eax
lea ecx, [ebp - 0x78]
call fcn.10046de5
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
jmp 0x100408df
jmp 0x100408e1
jmp 0x10040870
lea ecx, [ebp - 0x78]
call fcn.100264c9
cmp eax, dword [ebp - 0x2c]
jae 0x100408fb
mov dword [ebp - 0x10], 0xfffffffe
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0x1000cda8
call fcn.10054dcc
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.10026374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.1000f0f8
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
push dword [eax]
mov ecx, dword [ebp - 0x70]
call fcn.1000f0fd
mov dword [eax], 0xfffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret