Function at 0x4167c0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x45311d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x44]
test al, 1
je 0x41680a
test al, 0x40
je 0x416a84
mov ecx, dword [edi + 0x7c]
xor eax, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x18], eax
test ecx, ecx
jle 0x416a84
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
js 0x416aa7
cmp eax, dword [edi + 0x7c]
jge 0x416aa7
mov esi, dword [edi + 0x78]
add esi, ecx
mov eax, dword [esi + 4]
add eax, 0xfffffffc
cmp eax, 6
ja case.0x41684a.6
movzx eax, byte [eax + 0x416ac8]
jmp dword [eax*4 + 0x416ac0]
mov eax, dword [edi + 0x70]
lea ebx, [edi + 0x70]
mov dword [ebp - 0x14], ebx
cmp dword [eax - 0xc], 0
jne 0x416866
lea ebx, [edi + 0x68]
mov dword [ebp - 0x14], ebx
push ebx
lea ecx, [ebp - 0x10]
call fcn.00407510
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov eax, dword [esi + 0x18]
push dword [eax - 0xc]
push eax
call fcn.00403530
cmp byte [esi + 0x1c], 0
jne 0x416906
cmp byte [edi + 0xf8], 0
jne 0x416899
jmp 0x416a49
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.0043a300
add esp, 0xc
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x40], 0x465524
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
xor ecx, ecx
add ecx, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x30], ecx
adc ebx, 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x40], 0x465524
test eax, eax
je 0x4168f5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], 0
cmp ecx, dword [esi + 0xc]
jne 0x4168fe
test ebx, ebx
je 0x416903
jmp 0x416a49
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi]
cmp eax, 1
je 0x416954
cmp eax, 3
je 0x416954
cmp eax, 7
je 0x416954
cmp eax, 8
je 0x416954
cmp eax, 9
je 0x416940
cmp eax, 0xa
je 0x416940
cmp eax, 0x64
jb 0x416974
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x41693b
cmp eax, 5
jne 0x416974
jmp 0x416a49
cmp dword [edi + 0x90], 1
je 0x41694f
test byte [esi + 8], 1
je 0x416974
jmp 0x416a49
mov eax, dword [edi + 0x90]
cmp eax, 4
je 0x416974
cmp eax, 2
je 0x41696f
cmp eax, 1
je 0x41696f
test byte [esi + 8], 1
je 0x416974
jmp 0x416a49
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x41698b
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00403e10
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x416a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x416a12
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call fcn.00403950
test eax, eax
je 0x416ab3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x4c], eax
call fcn.00403950
test eax, eax
je 0x416ab3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0xa
mov word [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00414730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004148a0
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.004109c0
mov byte [ebp - 4], 0xc
mov edx, ebx
mov ecx, eax
call fcn.004111f0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416a49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416a6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
inc eax
add ecx, 0x20
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
cmp eax, dword [ebp - 0x38]
jl 0x416822
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.00438889
lea esp, [ebp + 0x254]
pop ebp
ret
push 1
push 0xc000008c
call fcn.0040ce70
push 0x80004005
call fcn.00404020
nop dword [eax]
push ecx
push 1751121985
inc ecx
add byte [eax], al
add byte [ecx], al
add dword [ecx], eax
add byte [eax], al
int3