Function at 0x402010
Capabilities:
Check if file exists
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x45166c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x454434]
cmp byte [eax], 0
push esi
push edi
je 0x402035
mov word [eax + 0x82], pe_nt_image_headers32
lea esi, [eax + 0x38]
mov eax, dword [esi]
push 0x446de0
push eax
call fcn.00424e8d
add esp, 8
test eax, eax
je 0x402053
sub eax, dword [esi]
cmp eax, 1
je 0x402082
lea ecx, [ebp - 0x50]
call fcn.004012c0
mov eax, dword [eax]
mov esi, dword [0x454434]
push eax
add esi, 0x38
or eax, 0xffffffff
call int.00413ec0
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
cmp eax, ecx
je 0x402082
push eax
call fcn.004244c1
add esp, 4
mov edx, dword [0x454434]
mov eax, dword [edx + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push eax
call edi
test eax, eax
je 0x4020ae
mov eax, dword [0x454434]
mov ecx, dword [eax + 0x38]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [0x454434]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4020ff
lea ecx, [ebp - 0x50]
call fcn.004012c0
mov eax, dword [eax]
mov esi, dword [0x454434]
push eax
add esi, 0x38
or eax, 0xffffffff
call int.00413ec0
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
cmp eax, ecx
je 0x4020f1
push eax
call fcn.004244c1
add esp, 4
mov edx, dword [0x454434]
mov eax, dword [edx + 0x38]
push 0
push eax
call edi
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [0x454434]
mov edx, dword [ecx + 0x24]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x4c
call fcn.00423e4d
add esp, 4
test eax, eax
je 0x402131
lea ecx, [eax + 8]
mov dword [eax + 4], ecx
mov byte [ecx], 0
jmp 0x402133
xor eax, eax
mov ecx, dword [0x454434]
mov edx, dword [ecx + 0x24]
mov dword [ecx + 0x8c], eax
mov dword [eax], edx
push 0x4468f4
lea eax, [ecx + 0x38]
call fcn.00413dc0
lea ecx, [ebp - 0x50]
call fcn.00401890
mov eax, dword [eax]
push eax
mov eax, dword [0x454434]
add eax, 0x38
call fcn.00413dc0
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
cmp eax, ecx
je 0x40217c
push eax
call fcn.004244c1
add esp, 4
mov eax, dword [0x454434]
mov edx, dword [eax + 0x38]
mov esi, dword [eax + 0x8c]
push edx
add esi, 4
or eax, 0xffffffff
call int.00413ec0
push 0x18
call fcn.00423e4d
add esp, 4
test eax, eax
je 0x4021bb
mov word [eax + 8], 0
mov dword [eax], vtable._6qf9e3a_NAr___q_.0
mov dword [eax + 0x14], 0
mov esi, eax
jmp 0x4021bd
xor esi, esi
mov eax, dword [0x454434]
mov dword [eax + 0x88], esi
cmp byte [esi + 8], 0
jne 0x402207
mov eax, dword [eax + 0x8c]
lea ecx, [esi + 0x10]
push ecx
push 0
push esi
push 0x404800
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.00423f95
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x402207
cmp byte [esi + 9], 0
je 0x402203
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 8], 1
mov edx, dword [0x454434]
mov eax, dword [edx + 0x24]
push 0x43
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042397b
mov esp, ebp
pop ebp
ret