Function at 0x10016595
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x100166bd
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x84], 0x16c2
cmp dword [ebp - 0x84], 0xd45
jge 0x1001669e
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xbc]
push eax
push 0x10663fb0
push 0x1000ea1c
call fcn.10056960
add esp, 0x10
call fcn.100163fb
and dword [ebp - 0x34], 0
jmp 0x100165fc
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0xbc]
jge 0x1001662f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1000ea30
call fcn.10056960
add esp, 0xc
mov eax, dword [ebp - 8]
dec eax
push eax
mov eax, dword [ebp - 0xc]
dec eax
push eax
call fcn.10016422
pop ecx
pop ecx
jmp 0x100165f5
call fcn.1001647c
and dword [ebp - 0x30], 0
jmp 0x10016641
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x7c]
jge 0x1001669e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1000ea30
call fcn.10056960
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [eax*4 + 0x10699c68]
cmp eax, dword [ecx*4 + 0x10699c68]
jge 0x10016689
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x1000ea8c
call fcn.10056cf1
add esp, 0xc
jmp 0x1001669c
push dword [ebp - 0xc]
push dword [ebp - 8]
push 0x1000ea8c
call fcn.10056cf1
add esp, 0xc
jmp 0x1001663a
push 0x33ee
push 1
push dword [ebp - 0xfc]
push 0x6643
call fcn.10016a7c
add esp, 0x10
jmp 0x10016a78
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x10016746
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10016a78
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x1001685f
mov dword [ebp - 0xc8], 1
jmp 0x10016866
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jg 0x10016886
mov dword [ebp - 0x28], 1
jmp 0x1001688a
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
cmp dword [ebp - 0x28], 0
je 0x100168a1
mov dword [ebp - 0x38], 1
jmp 0x100168a5
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
jge 0x100168c3
mov dword [ebp - 0x48], 1
jmp 0x100168c7
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x48], eax
je 0x100168e3
mov eax, 0x8792
test eax, eax
jne 0x100168e3
and dword [ebp - 0xd8], 0
jmp 0x100168ed
mov dword [ebp - 0xd8], 1
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0xfffffffe
jge 0x100168fe
mov dword [ebp - 0x20], 1
jmp 0x10016902
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
imul eax, dword [ebp - 0x20], 0xf57a
mov ecx, dword [ebp - 0x68]
cmp eax, dword [ecx]
jg 0x10016921
mov dword [ebp - 0x24], 1
jmp 0x10016925
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
cmp dword [ebp - 0x24], 0xfffffff8
jle 0x10016944
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x10016944
mov dword [ebp - 0x50], 1
jmp 0x10016948
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x50]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jl 0x10016965
mov dword [ebp - 0x60], 1
jmp 0x10016969
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x60]
sub ecx, dword [eax]
jne 0x10016981
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x10016981
and dword [ebp - 0x1c], 0
jmp 0x10016988
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
cmp dword [ebp - 0x1c], 1
jne 0x100169a2
mov dword [ebp - 0xe0], 1
jmp 0x100169a9
and dword [ebp - 0xe0], 0
xor eax, eax
cmp eax, 1
jae 0x100169b9
mov dword [ebp - 0x44], 1
jmp 0x100169bd
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, 0xbd2a
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x44]
sub edx, dword [ecx]
imul ecx, edx, 0x702b
cmp eax, ecx
jne 0x100169e2
mov dword [ebp - 0x4c], 1
jmp 0x100169e6
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x4c], eax
je 0x100169f9
mov dword [ebp - 0x3c], 1
jmp 0x100169fd
and dword [ebp - 0x3c], 0
push 0
mov ecx, dword [ebp - 0xe8]
call fcn.100302cc
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
cmp dword [ebp - 0x3c], 0xffffffff
jb 0x10016a1e
mov dword [ebp - 0x54], 1
jmp 0x10016a22
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x54]
jle 0x10016a35
mov dword [ebp - 0x5c], 1
jmp 0x10016a39
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax]
cmp dword [ebp - 0x5c], eax
jg 0x10016a4f
mov dword [ebp - 0x64], 1
jmp 0x10016a53
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x64]
sub eax, 8
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx]
jl 0x10016a69
mov dword [ebp - 0x6c], 1
jmp 0x10016a6d
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0x6c]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret