Function at 0x418b30
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x4e5070]
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 - 0x4a4], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4a8], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x418b8a
xor ecx, ecx
jmp 0x418b9f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418b90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004036e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
xor ebx, ebx
mov eax, dword [ebp - 0x18]
cmp edx, 8
mov esi, dword [ebp - 0x28]
cmovae ecx, esi
lea edi, [eax + eax]
cmp word [edi + ecx], 0x5c
jne 0x418bde
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp word [edi + eax], 0x2f
je 0x418bf3
push 1
push 0x4c9500
lea ecx, [ebp - 0x28]
call fcn.0040a550
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 0x418c3d
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
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
je 0x418c3d
call edi
cmp eax, 5
jne 0x418c56
push 0x1f4
call esi
jmp 0x418c13
push ecx
mov ecx, dword [ebp - 0x4a4]
xor edx, edx
push 2
call fcn.00418030
mov edi, eax
add esp, 8
test edi, edi
jne 0x418c60
mov ebx, 0x200
jmp 0x418dcc
lea eax, [ebp - 0x4a0]
or edx, 0xffffffff
push eax
mov ecx, edi
call fcn.00418160
mov eax, dword [ebp - 0x4a0]
add esp, 4
xor esi, esi
mov dword [ebp - 0x4a4], eax
test eax, eax
jle 0x418db4
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x270], 0
cmp dword [edi], 1
mov word [ebp - 0x26c], ax
mov dword [ebp - 0x44], eax
je 0x418cb7
mov dword [0x4e90ac], 0x80000
jmp 0x418ccc
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x270]
push eax
push esi
call fcn.00417470
mov dword [0x4e90ac], eax
lea eax, [ebp - 0x26c]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0040ab80
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
mov edx, dword [ebp - 0x40]
cmovae eax, edx
cmp dword [edi], 1
jne 0x418d8f
mov ecx, dword [edi + 4]
sub esp, 8
push eax
push esi
call fcn.00417c60
mov ebx, eax
mov dword [0x4e90ac], ebx
cmp ebx, 0x5000000
je 0x418d5f
test ebx, ebx
jne 0x418d87
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 8
jb 0x418d37
mov eax, dword [ecx]
jmp 0x418d39
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x40]
push edx
push eax
call fcn.004037e0
push dword [ebp - 0x4a4]
push esi
push dword [ebp - 0x4a8]
call fcn.00408410
add esp, 0x24
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x418d78
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404770
inc esi
cmp esi, dword [ebp - 0x4a4]
jl 0x418c90
jmp 0x418db4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x40]
jmp 0x418d9e
mov dword [0x4e90ac], 0x80000
mov ebx, 0x80000
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x418db4
lea eax, [ecx + 1]
push eax
push edx
lea ecx, [ebp - 0x40]
call fcn.00404770
cmp dword [edi], 1
mov ecx, edi
sete al
test al, al
je 0x418dc7
call fcn.004181c0
jmp 0x418dcc
call fcn.00418ad0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x418de1
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00404770
mov eax, ebx
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.00493122
mov esp, ebp
pop ebp
ret