Function at 0x416c10
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5046b3
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x541074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4a8], ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x416c68
xor ecx, ecx
jmp 0x416c7f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416c70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402f90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
xor edi, edi
mov eax, dword [ebp - 0x18]
cmp edx, 8
mov esi, dword [ebp - 0x28]
cmovae ecx, esi
lea ebx, [eax + eax]
cmp word [ebx + ecx], 0x5c
jne 0x416cbb
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp word [ebx + eax], 0x2f
je 0x416cd0
push 1
push 0x51bb3c
lea ecx, [ebp - 0x28]
call fcn.00404a30
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416cfe
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x416d17
push ecx
mov ecx, dword [ebp - 0x4a8]
xor edx, edx
push 2
call fcn.004161d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x416d21
mov edi, 0x200
jmp 0x416fa1
lea eax, [ebp - 0x4a0]
or edx, 0xffffffff
push eax
mov ecx, ebx
call fcn.00416300
mov eax, dword [ebp - 0x4a0]
xor esi, esi
add esp, 4
mov dword [ebp - 0x4a8], eax
mov dword [ebp - 0x4a4], esi
test eax, eax
jle 0x416f30
xor eax, eax
mov dword [ebp - 0x270], 0
cmp dword [ebx], 1
mov word [ebp - 0x26c], ax
mov dword [ebp - 0x44], eax
je 0x416d78
mov dword [0x5480a4], 0x80000
jmp 0x416d8d
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x270]
push eax
push esi
call fcn.00415620
mov dword [0x5480a4], eax
lea eax, [ebp - 0x26c]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00404d30
add esp, 4
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
cmp dword [ebx], 1
je 0x416dc7
mov dword [0x5480a4], 0x80000
mov edi, 0x80000
jmp 0x416de0
mov ecx, dword [ebx + 4]
sub esp, 8
push eax
push esi
call fcn.00415e00
mov edi, eax
mov dword [0x5480a4], edi
test edi, edi
je 0x416e4a
xor esi, esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x416e0e
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jl 0x416de2
mov esi, dword [ebp - 0x4a4]
jmp 0x416e4a
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0x4a4]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebx], 1
je 0x416e35
mov dword [0x5480a4], 0x80000
mov edi, 0x80000
jmp 0x416e4a
mov ecx, dword [ebx + 4]
sub esp, 8
push eax
push esi
call fcn.00415e00
mov edi, eax
mov dword [0x5480a4], edi
cmp dword [ebp + 0x2c], 0
je 0x416ee7
xor eax, eax
mov dword [ebp - 0x4b4], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x4c8], ax
lea ecx, [ebp - 0x4c8]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x4b8], 0
push eax
call fcn.004034d0
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x4a4], edi
mov dword [ebp - 0x4ac], eax
mov dword [ebp - 0x4b0], esi
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x416f19
mov eax, dword [ecx]
lea edx, [ebp - 0x4a4]
push edx
lea edx, [ebp - 0x4c8]
push edx
lea edx, [ebp - 0x4ac]
push edx
lea edx, [ebp - 0x4b0]
push edx
call dword [eax + 8]
mov edi, eax
mov eax, dword [ebp - 0x4b4]
cmp eax, 8
jb 0x416ee7
inc eax
lea ecx, [ebp - 0x4c8]
push eax
push dword [ebp - 0x4c8]
call fcn.00403ab0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
test edi, edi
jne 0x416f1e
cmp eax, 8
jb 0x416f04
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403ab0
inc esi
mov dword [ebp - 0x4a4], esi
cmp esi, dword [ebp - 0x4a8]
jl 0x416d51
jmp 0x416f30
call fcn.004c6634
cmp eax, 8
jb 0x416f30
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403ab0
mov ecx, dword [ebx]
cmp ecx, 1
sete al
test al, al
je 0x416f6a
cmp ecx, 1
je 0x416f4d
mov dword [0x5480a4], 0x80000
jmp 0x416fa1
mov esi, dword [ebx + 4]
mov ecx, esi
call fcn.00416170
mov dword [0x5480a4], eax
test esi, esi
je 0x416f96
push ecx
mov ecx, esi
call fcn.004162a0
jmp 0x416f96
cmp ecx, 2
je 0x416f7b
mov dword [0x5480a8], 0x80000
jmp 0x416fa1
mov esi, dword [ebx + 4]
mov ecx, esi
call fcn.00416a70
mov dword [0x5480a8], eax
test esi, esi
je 0x416f96
push ecx
mov ecx, esi
call fcn.00416bb0
push 8
push ebx
call fcn.004c8b33
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x416fb6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403ab0
mov ecx, dword [ebp + 0x2c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test ecx, ecx
je 0x416fe2
mov esi, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c8882
mov esp, ebp
pop ebp
ret