Function at 0x10054261
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x28]
push 2
call fcn.10018b61
xor ebx, ebx
mov dword [ebp - 0x14], 0x11accbad
mov dword [ebp - 0xc], ebx
jmp 0x10054294
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov dword [eax + ecx*4], 0x24ec2e0c
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x10054284
mov eax, dword [ebp - 0x28]
xor esi, esi
inc esi
mov dword [eax], 0xa
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], ebx
jl 0x100542cc
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x100542c7
push 0x268
push 0x2607
push ebx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
dec dword [ebp - 0x14]
jns 0x100542ae
lea ecx, [ebp - 0x28]
call fcn.10018be3
push 0x7c84
push edi
push esi
call fcn.1004e20a
mov dword [ebp - 8], 0xfffffff6
add esp, 0xc
mov dword [ebp - 0xc], 4
mov dword [ebp - 0xc], ebx
jmp 0x10054304
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x10], 0x374b1b05
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], esi
jl 0x100542f6
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x10], 0xfffffffd
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, ecx
mov eax, dword [ebp - 8]
setle dl
xor ecx, ecx
cmp eax, edx
setge cl
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0xc], ebx
jmp 0x100543bb
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], ebx
jmp 0x100543b3
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1005434c
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x10]
cmp eax, dword [ebp - 8]
je 0x100543a7
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x10]
cmp eax, esi
mov eax, dword [ebp - 8]
sete cl
xor edx, edx
mov eax, dword [ebp + eax*4 - 0x10]
cmp ecx, eax
mov eax, dword [ebp - 8]
setge dl
xor ecx, ecx
dec edx
mov eax, dword [ebp + eax*4 - 0x10]
cmp edx, eax
mov eax, dword [ebp - 8]
setl cl
cmp ecx, 0x8b0d58e7
mov eax, dword [ebp + eax*4 - 0x10]
sbb ecx, ecx
sub eax, dword [ebp - 0x14]
neg ecx
cmp eax, ecx
jle 0x100543a3
cmp dword [ebp - 0xc], ebx
jne 0x100543a7
mov ecx, ebx
jmp 0x100543a9
mov ecx, esi
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x10], ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
jle 0x1005433d
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], ebx
jle 0x10054335
push edi
call fcn.100356a4
mov dword [ebp - 8], 0xfffffff6
xor edx, edx
mov dword [ebp - 0x14], 0xebf90350
mov edi, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x14], 0xfffffffd
pop ecx
mov ecx, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp ecx, eax
setle dl
xor ecx, ecx
sub edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, edx
setge cl
xor edx, edx
add ecx, dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp ecx, eax
setg dl
sub edx, 3
neg edx
sbb edx, edx
add edx, 0xec1e60de
neg edx
sbb edx, edx
xor eax, eax
inc edx
cmp edx, 0x1b35d569
setle al
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, 0x22124f84
setl cl
inc ecx
jne 0x100544e9
cmp dword [ebp - 0x14], ebx
jne 0x100544e9
push 0xfffffffffffffff6
pop eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
push 2
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xc], ebx
pop esi
jmp 0x10054484
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x1c], 3
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], esi
jl 0x10054476
mov dword [ebp - 0xc], ebx
jmp 0x100544e1
mov dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x34]
mov dword [ebp - 8], 0xe10ef7d5
push esi
call fcn.10018b61
mov eax, 0xedf2
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], ebx
jmp 0x100544cb
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x34]
mov dword [eax + ecx*4], 0xd1a6f322
inc dword [ebp - 8]
cmp dword [ebp - 8], esi
jl 0x100544bb
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
inc dword [ebp - 0x38]
call fcn.10018be3
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 7
jl 0x1005448e
jmp 0x1005452a
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0xe215169f
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], 0x7d2ae857
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0xc]
cmp ecx, eax
mov eax, dword [ebp - 8]
cmovge esi, ebx
xor ecx, ecx
cmp eax, esi
setge cl
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret