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

Disassembly:
sub esp, 0x244
mov eax, dword [0x469720]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
mov edi, ecx
mov eax, dword [edi + 0xb0]
push eax
mov dword [esp + 0x14], edi
call esi
test eax, eax
je 0x40a1f5
mov eax, dword [edi + 0xb0]
push eax
call fcn.00410930
mov ebp, eax
mov eax, dword [edi + 0xb0]
add esp, 4
push eax
call esi
xor ebx, ebx
test eax, eax
jne 0x409ff3
mov eax, dword [edi + 0xa8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp ebp, ebx
mov eax, dword [edi + 0xa8]
jne 0x40a009
mov dword [0x46e194], 0x10000
jmp 0x40a028
cmp dword [ebp], 1
je 0x40a01b
mov dword [0x46e194], 0x80000
jmp 0x40a028
mov esi, dword [ebp + 4]
call fcn.0040fe90
mov dword [0x46e194], eax
xor eax, eax
cmp ebp, ebx
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], bx
mov dword [esp + 0x244], ebx
jne 0x40a04d
mov dword [0x46e194], 0x10000
jmp 0x40a0de
cmp dword [ebp], 1
je 0x40a05f
mov dword [0x46e194], 0x80000
jmp 0x40a0de
mov esi, dword [ebp + 4]
mov ecx, dword [esi]
or edx, 0xffffffff
cmp dword [ecx + 4], edx
jg 0x40a073
mov ecx, 0x10000
jmp 0x40a0d8
cmp dword [esi + 4], edx
je 0x40a086
mov edi, ecx
call fcn.0040fcf0
mov edi, dword [esp + 0x10]
or edx, 0xffffffff
mov ecx, dword [esi]
mov dword [esi + 4], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], bx
mov dword [esp + 0x224], ebx
mov dword [esp + 0x228], ebx
mov dword [esp + 0x22c], ebx
mov dword [esp + 0x230], ebx
mov dword [esp + 0x234], ebx
mov dword [esp + 0x238], ebx
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x240], ebx
mov dword [esp + 0x244], ebx
xor ecx, ecx
mov dword [0x46e194], ecx
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x14], eax
jle 0x40a16d
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
cmp ebp, ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x1c], bx
mov dword [esp + 0x244], ebx
je 0x40a141
cmp dword [ebp], 1
je 0x40a12c
mov dword [0x46e194], 0x80000
cmp dword [ebp], 1
je 0x40a14d
mov dword [0x46e194], 0x80000
jmp 0x40a160
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x18]
push edx
push esi
call fcn.0040ff00
mov dword [0x46e194], eax
jmp 0x40a11a
mov dword [0x46e194], 0x10000
jmp 0x40a160
mov eax, dword [ebp + 4]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.004105a0
mov dword [0x46e194], eax
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x40a0f2
mov edi, dword [esp + 0x10]
cmp ebp, ebx
je 0x40a1a7
mov eax, dword [ebp]
cmp eax, 1
sete cl
cmp cl, bl
je 0x40a1b3
cmp eax, 1
je 0x40a18f
mov dword [0x46e194], 0x80000
jmp 0x40a1e3
mov esi, dword [ebp + 4]
call fcn.004108d0
cmp esi, ebx
mov dword [0x46e194], eax
je 0x40a1da
call fcn.004109f0
jmp 0x40a1da
mov dword [0x46e198], 0x10000
jmp 0x40a1e3
cmp eax, 2
je 0x40a1c4
mov dword [0x46e198], 0x80000
jmp 0x40a1e3
mov esi, dword [ebp + 4]
call fcn.004111c0
cmp esi, ebx
mov dword [0x46e198], eax
je 0x40a1da
call fcn.004112e0
push ebp
call fcn.0041218b
add esp, 4
mov eax, dword [edi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042efdc
add esp, 0x244
ret