Function at 0x40ea70
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c241
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x4243cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x870], edi
mov dword [ebp - 0x88c], edi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x870], esi
jb 0x40eabf
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40eacf
test al, 0x10
jne 0x40eb07
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40ead9
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40eb07
push eax
mov dword [edi + 0x10], eax
mov ecx, edi
mov dword [edi + 0x14], 7
push 0x41d6c4
mov word [edi], ax
call fcn.00409e20
mov eax, edi
jmp 0x40ee41
xor eax, eax
mov dword [ebp - 0x85c], 0
mov dword [ebp - 0x858], 7
mov word [ebp - 0x86c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x840], 7
mov word [ebp - 0x854], ax
mov byte [ebp - 4], 1
xor edi, edi
lea esi, [ebp - 0x12]
mov ecx, edi
test edi, edi
jns 0x40eb80
neg ecx
nop
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x40eb50
add esi, 0xfffffffe
mov eax, 0x2d
mov word [esi], ax
jmp 0x40eba0
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x40eb80
xor eax, eax
mov dword [ebp - 0x878], 0
mov word [ebp - 0x888], ax
lea eax, [ebp - 0x12]
mov dword [ebp - 0x874], 7
cmp esi, eax
je 0x40ebd5
sub eax, esi
lea ecx, [ebp - 0x888]
sar eax, 1
push eax
push esi
call fcn.00409e20
push 8
push str.Resource
push 0
lea ecx, [ebp - 0x888]
mov byte [ebp - 4], 2
call fcn.0040fbc0
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x840]
movq qword [ebp - 0x894], xmm1
movups xmmword [ebp - 0x8a4], xmm0
cmp edx, 8
jb 0x40ec6a
mov ecx, dword [ebp - 0x854]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x40ec51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ee5c
push edx
push ecx
call fcn.0041a1df
movups xmm0, xmmword [ebp - 0x8a4]
add esp, 8
movq xmm1, qword [ebp - 0x894]
mov edx, dword [ebp - 0x874]
inc edi
movq qword [ebp - 0x844], xmm1
mov byte [ebp - 4], 1
movups xmmword [ebp - 0x854], xmm0
cmp edx, 8
jb 0x40ecc6
mov ecx, dword [ebp - 0x888]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 5
cmp edx, 0x1000
jb 0x40ecb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ee5c
push edx
push ecx
call fcn.0041a1df
add esp, 8
mov byte [ebp - 4], 1
push 0x800
lea eax, [ebp - 0x83c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0x870]
lea eax, [ebp - 0x854]
add esp, 0xc
mov ecx, esi
cmp dword [ebp - 0x840], 8
cmovae eax, dword [ebp - 0x854]
cmp dword [esi + 0x14], 8
jb 0x40ed00
mov ecx, dword [esi]
push eax
push ecx
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
mov dword [ebp - 0x878], 0
lea ecx, [ebp - 0x83c]
mov dword [ebp - 0x874], 7
mov word [ebp - 0x888], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ed35
sub ecx, edx
lea eax, [ebp - 0x83c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x888]
call fcn.00409e20
mov edx, dword [ebp - 0x858]
cmp edx, 8
jb 0x40ed9f
mov ecx, dword [ebp - 0x86c]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 6
cmp edx, 0x1000
jb 0x40ed91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ee5c
push edx
push ecx
call fcn.0041a1df
add esp, 8
mov byte [ebp - 4], 1
movups xmm1, xmmword [ebp - 0x888]
cmp dword [ebp - 0x874], 8
lea ecx, [ebp - 0x86c]
movq xmm0, qword [ebp - 0x878]
movd eax, xmm1
movups xmmword [ebp - 0x86c], xmm1
cmovae ecx, eax
movq qword [ebp - 0x85c], xmm0
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40eb44
mov esi, dword [ebp - 0x88c]
movups xmm0, xmmword [ebp - 0x854]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x844]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x840], 7
mov word [ebp - 0x854], ax
mov eax, dword [ebp - 0x858]
mov dword [ebp - 4], 9
cmp eax, 8
jb 0x40ee3f
inc eax
lea ecx, [ebp - 0x86c]
push eax
push dword [ebp - 0x86c]
call fcn.00409fe0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a150
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3