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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504703
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x541074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4ac], edx
mov dword [ebp - 0x4a8], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
jne 0x417061
xor ecx, ecx
jmp 0x417075
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417066
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402f90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
xor edi, edi
mov eax, dword [ebp - 0x1c]
cmp edx, 8
mov esi, dword [ebp - 0x2c]
cmovae ecx, esi
lea ebx, [eax + eax]
cmp word [ebx + ecx], 0x5c
jne 0x4170b1
cmp edx, 8
lea eax, [ebp - 0x2c]
cmovae eax, esi
cmp word [ebx + eax], 0x2f
je 0x4170c6
push 1
push 0x51bb3c
lea ecx, [ebp - 0x2c]
call fcn.00404a30
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
cmp edx, 8
lea eax, [ebp - 0x2c]
cmovae eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4170f4
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x417111
mov edx, dword [ebp - 0x4ac]
push ecx
mov ecx, dword [ebp - 0x4a8]
push 3
call fcn.004161d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x41711b
mov edi, 0x200
jmp 0x4173a0
lea eax, [ebp - 0x4a4]
or edx, 0xffffffff
push eax
mov ecx, ebx
call fcn.00416300
mov eax, dword [ebp - 0x4a4]
xor esi, esi
add esp, 4
mov dword [ebp - 0x4ac], eax
mov dword [ebp - 0x4a8], esi
test eax, eax
jle 0x41732f
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x274], 0
cmp dword [ebx], 1
mov word [ebp - 0x270], ax
mov dword [ebp - 0x48], eax
je 0x417177
mov dword [0x5480a4], 0x80000
jmp 0x41718c
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x274]
push eax
push esi
call fcn.00415620
mov dword [0x5480a4], eax
lea eax, [ebp - 0x270]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.00404d30
add esp, 4
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
cmp dword [ebx], 1
je 0x4171c6
mov dword [0x5480a4], 0x80000
mov edi, 0x80000
jmp 0x4171df
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 0x417249
xor esi, esi
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41720d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jl 0x4171e1
mov esi, dword [ebp - 0x4a8]
jmp 0x417249
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov esi, dword [ebp - 0x4a8]
cmovae eax, dword [ebp - 0x44]
cmp dword [ebx], 1
je 0x417234
mov dword [0x5480a4], 0x80000
mov edi, 0x80000
jmp 0x417249
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 + 0x30], 0
je 0x4172e6
xor eax, eax
mov dword [ebp - 0x4b8], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x4cc], ax
lea ecx, [ebp - 0x4cc]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4bc], 0
push eax
call fcn.004034d0
mov eax, dword [ebp - 0x4ac]
mov dword [ebp - 0x4a8], edi
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4b4], esi
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x417318
mov eax, dword [ecx]
lea edx, [ebp - 0x4a8]
push edx
lea edx, [ebp - 0x4cc]
push edx
lea edx, [ebp - 0x4b0]
push edx
lea edx, [ebp - 0x4b4]
push edx
call dword [eax + 8]
mov edi, eax
mov eax, dword [ebp - 0x4b8]
cmp eax, 8
jb 0x4172e6
inc eax
lea ecx, [ebp - 0x4cc]
push eax
push dword [ebp - 0x4cc]
call fcn.00403ab0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
test edi, edi
jne 0x41731d
cmp eax, 8
jb 0x417303
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00403ab0
inc esi
mov dword [ebp - 0x4a8], esi
cmp esi, dword [ebp - 0x4ac]
jl 0x417150
jmp 0x41732f
call fcn.004c6634
cmp eax, 8
jb 0x41732f
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00403ab0
mov ecx, dword [ebx]
cmp ecx, 1
sete al
test al, al
je 0x417369
cmp ecx, 1
je 0x41734c
mov dword [0x5480a4], 0x80000
jmp 0x4173a0
mov esi, dword [ebx + 4]
mov ecx, esi
call fcn.00416170
mov dword [0x5480a4], eax
test esi, esi
je 0x417395
push ecx
mov ecx, esi
call fcn.004162a0
jmp 0x417395
cmp ecx, 2
je 0x41737a
mov dword [0x5480a8], 0x80000
jmp 0x4173a0
mov esi, dword [ebx + 4]
mov ecx, esi
call fcn.00416a70
mov dword [0x5480a8], eax
test esi, esi
je 0x417395
push ecx
mov ecx, esi
call fcn.00416bb0
push 8
push ebx
call fcn.004c8b33
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4173b5
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403ab0
mov ecx, dword [ebp + 0x30]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test ecx, ecx
je 0x4173e1
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
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 - 0x14]
xor ecx, ebp
call fcn.004c8882
mov esp, ebp
pop ebp
ret