Function at 0x1000d055
Capabilities:
Clear file content
Delete file

Disassembly:
mov eax, 0x10073087
call fcn.100729d8
sub esp, 0x78
push ebx
push edi
mov ebx, edx
mov edi, ecx
push 4
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x28], ebx
call fcn.10013d2b
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edx
jmp 0x1000d08d
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x74], 0xfffffff6
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x1000d07f
mov dword [ebp - 0x14], edx
jmp 0x1000d0a8
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x50]
mov dword [eax + ecx*4], 0xe83c773
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x1000d098
mov dword [ebp - 0x14], edx
jmp 0x1000d0c1
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x30], 0x3afc3718
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x1000d0b3
mov byte [ebp - 0xd], dl
cmp byte [ebp - 0xd], dl
je 0x1000d0d8
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor edx, edx
push esi
mov esi, dword [ebp - 0x50]
mov dword [esi + 0xc], 2
mov dword [ebp - 0x18], 0xd86e52d8
mov dword [ebp - 0x24], 0xb416c011
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], edx
jmp 0x1000d266
mov dword [ebp - 0x14], 0x1d847576
xor edx, edx
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
mov eax, dword [ebp - 0x2c]
setle dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x14]
setle cl
xor edx, edx
imul eax, ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x18], edx
je 0x1000d17f
mov dword [ebp - 0x14], 2
cmp dword [ebp - 0x14], edx
jl 0x1000d25c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + eax*4 - 0x74]
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x74], ecx
mov byte [ebp - 0xd], dl
cmp byte [ebp - 0xd], 0
je 0x1000d175
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
xor edx, edx
dec dword [ebp - 0x14]
jns 0x1000d155
jmp 0x1000d25c
mov dword [ebp - 0x24], 0xe8ee72c9
mov dword [ebp - 0x14], edx
jmp 0x1000d1fe
mov dword [ebp - 0x24], 0x4daed0f1
mov dword [ebp - 0x24], edx
jmp 0x1000d1f5
push 2
lea ecx, [ebp - 0x5c]
call fcn.10013d2b
mov dword [ebp - 0x20], 0
jmp 0x1000d1ba
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x5c]
mov dword [eax + ecx*4], 0xfffffff7
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 2
jl 0x1000d1aa
mov edx, dword [ebp - 0x5c]
and dword [edx + 4], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + eax*4 - 0x74]
mov eax, dword [ebp - 0x14]
inc dword [edx + 4]
cmp dword [edx + 4], 1
mov dword [ebp + eax*4 - 0x70], ecx
jle 0x1000d1c7
push dword [ebp - 0x5c]
call fcn.10058737
xor edx, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], edx
inc dword [ebp - 0x24]
pop ecx
cmp dword [ebp - 0x24], 2
jle 0x1000d197
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 1
jle 0x1000d18b
mov eax, dword [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x18]
imul ecx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
cmp ecx, 0xffffffff
setge dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x18]
setl cl
xor edx, edx
imul ecx, ecx, 0xeddd
cmp ecx, eax
setg dl
mov dword [ebp - 0x24], edx
xor edx, edx
cmp dword [ebp - 0x24], edx
je 0x1000d243
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x70]
cmp dword [ebp - 0x24], edx
je 0x1000d24e
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x24], 0xfffffffa
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jle 0x1000d0ff
dec dword [esi + 0xc]
jns 0x1000d0e3
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x50]
call fcn.10058737
pop ecx
xor eax, eax
lea ecx, [ebp - 0x68]
push 4
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
call fcn.10013d2b
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], edx
jmp 0x1000d2b3
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x1c], 0x40d7
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 1
jl 0x1000d2a5
mov dword [ebp - 0x18], edx
jmp 0x1000d2cb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x68]
or dword [eax + ecx*4], 0xffffffff
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 4
jl 0x1000d2be
mov esi, dword [ebp - 0x68]
mov dword [esi + 8], edx
mov dword [ebp - 0x18], 0xfffffffe
mov dword [ebp - 0x20], 0x1ec2
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x24], 0x78cca699
mov dword [ebp - 0x24], edx
jmp 0x1000d306
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x38], 0x5c8a52b4
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 2
jl 0x1000d2f8
mov byte [ebp - 0xd], dl
cmp byte [ebp - 0xd], 0
je 0x1000d31e
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov byte [ebp - 0xd], dl
cmp byte [ebp - 0xd], 0
je 0x1000d33f
push 0x1fa2
push edx
push 0xe28
push 0xe4d
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
xor edx, edx
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], edx
jl 0x1000d3ab
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + eax*4 - 0x1c]
mov eax, dword [esi + 8]
cmp dword [ebp + eax*4 - 0x1c], ecx
jne 0x1000d36a
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
imul eax, dword [ebp - 0x24], 3
sub eax, 0x2488a74d
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jne 0x1000d38d
mov eax, dword [esi + 8]
cmp dword [ebp + eax*4 - 0x1c], edx
je 0x1000d390
xor edx, edx
inc edx
mov eax, dword [ebp - 0x18]
push 0
mov ecx, dword [ebp + eax*4 - 0x1c]
lea eax, [edx + 0x695c]
imul ecx, eax
pop edx
mov dword [ebp - 0x24], ecx
dec dword [ebp - 0x18]
jns 0x1000d347
inc dword [esi + 8]
cmp dword [esi + 8], 0
jle 0x1000d2d7
push dword [ebp - 0x68]
call fcn.10058737
pop ecx
xor eax, eax
lea ecx, [ebp - 0x44]
push 1
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
call fcn.10013d2b
mov dword [ebp - 0x18], 0x81c2900
xor edx, edx
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x24], edx
jmp 0x1000d3fb
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x44]
mov dword [eax + ecx*4], 0x1713b910
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 1
jl 0x1000d3eb
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], edx
jl 0x1000d4b4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x24], 0x5546
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x20], 0x30b91300
cmp dword [eax], edx
je 0x1000d439
cmp dword [ebp - 0x18], edx
je 0x1000d439
xor edx, edx
inc edx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x44]
cmp edx, dword [eax + ecx*4]
jl 0x1000d44e
cmp dword [ebp - 0x18], 0
jne 0x1000d44e
xor eax, eax
jmp 0x1000d451
xor eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
neg esi
mov eax, dword [ebp - 0x44]
sbb esi, esi
xor edx, edx
neg esi
cmp esi, dword [eax + ecx*4]
setle dl
xor ebx, ebx
mov dword [ebp - 0x78], edx
test edx, edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
setne bl
mov ecx, dword [ebp - 0x44]
mov esi, dword [ecx + eax*4]
mov eax, dword [ebp - 0x24]
add esi, ebx
imul esi, dword [ecx + edx*4]
sub esi, eax
cmp dword [ebp - 0x24], esi
jne 0x1000d494
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
dec dword [ebp - 0x18]
jns 0x1000d40d
mov ebx, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 0
pop esi
je 0x1000d4cf
push dword [ebp - 0x44]
call fcn.10058737
xor edx, edx
pop ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [edi], edx
jmp 0x1000d4e0
mov ecx, dword [edi]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 0xe83c773
inc dword [edi]
cmp dword [edi], 4
jl 0x1000d4d3
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret