Function at 0x413070
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45784a
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov edi, dword [esp + 0x168]
mov ebx, dword [esp + 0x16c]
mov dword [esp + 0x38], edi
xor esi, esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x160], esi
call fcn.004306c2
push 0x45c6da
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 1
call fcn.004027b0
mov byte [esp + 0x160], 2
call fcn.004316f5
cmp dword [esp + 0x174], esi
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x120]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
jg 0x4131b8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x160], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413138
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x160], 0
call fcn.00430a6d
mov eax, dword [esp + 0x170]
add eax, 0xfffffff0
mov dword [esp + 0x160], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413177
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0044027a
add esp, 0x150
ret
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x170]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x24], 0
call fcn.004015c0
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x104
lea ecx, [esp + 0x58]
push 0
push ecx
mov byte [esp + 0x170], 3
call fcn.004413c0
add esp, 0x10
push 0
push 0
push esi
lea edx, [esp + 0x48]
push edx
mov ecx, edi
call fcn.0042ded0
mov dword [esp + 0x24], eax
push 0x104
lea eax, [esp + 0x54]
push eax
push esi
mov ecx, edi
call fcn.0042e5d0
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x38]
call fcn.004027b0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x168], 4
call fcn.00401c50
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x160], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413268
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffffd
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x20]
call fcn.00407350
push 0x45da90
push eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x16c], 5
call fcn.00401f00
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 6
call fcn.00402020
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x160], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4132d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x160], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4132fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
xor edi, edi
test eax, eax
jle 0x41337f
xor esi, esi
cmp dword [esp + 0x28], esi
jle 0x413374
test edi, edi
jl 0x41345c
cmp edi, dword [esp + 0x44]
jge 0x41345c
test esi, esi
jl 0x41345c
cmp esi, dword [ebx + 8]
jge 0x41345c
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + edi*4]
lea edx, [ecx + esi*4]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413452
mov edx, dword [edx]
push eax
push edx
call fcn.00442f25
add esp, 8
test eax, eax
sete al
test al, al
jne 0x41336f
add esi, 1
cmp esi, dword [esp + 0x28]
jl 0x413310
jmp 0x413374
add dword [esp + 0x20], 1
mov eax, dword [esp + 0x44]
add edi, 1
cmp edi, eax
jl 0x413308
cmp dword [esp + 0x20], eax
jne 0x4133c7
lea ecx, [esp + 0x50]
push ecx
call fcn.0040e430
add esp, 4
test eax, eax
jne 0x4133c7
push 0x20
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.004048c0
cmp eax, 0xa
je 0x4133bf
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
call esi
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x28], eax
call esi
jmp 0x4133c7
mov dword [esp + 0x24], 1
cmp dword [ebp - 0xc], 0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
je 0x413411
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x4133ef
cmp dword [ebp - 8], 0
jl 0x413461
mov dword [ebp - 0xc], 0
mov byte [ebp], 0
jmp 0x413411
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413405
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ebp, [eax + 0x10]
lea eax, [ebp - 0x10]
mov byte [esp + 0x160], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413435
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x174]
mov dword [esp + 0x14], eax
jl 0x4131b0
jmp 0x413110
push 0x80004005
call fcn.00401090
jmp fcn.00430460
push 0x80070057
call fcn.00401090
int3