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

Disassembly:
sub esp, 0x11c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.0078c8a0
add esp, 8
test eax, eax
je 0x438065
mov byte [eax + 1], 0
mov edx, dword [0x809d38]
lea eax, [esp + 0x1c]
test eax, eax
mov dword [esp + 4], edx
je 0x438087
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x438089
xor ecx, ecx
push ebp
push esi
inc ecx
push 1
push ecx
lea ecx, [esp + 0x14]
call fcn.005dcfa0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.00409020
lea ecx, [esp + 0xc]
call fcn.004027b0
mov ebp, eax
mov edi, str.data
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0xc]
lea edi, [esi + ebp]
lea edx, [edi + 1]
push edx
call fcn.005dd230
push edi
lea ecx, [esp + 0x10]
call fcn.004029d0
mov eax, dword [esp + 0xc]
lea ecx, [esi + 1]
mov edx, ecx
mov esi, str.data
lea edi, [eax + ebp]
lea eax, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 1
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004025d0
push 1
push str._save
lea ecx, [esp + 0x24]
call fcn.004026a0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00438280
lea edx, [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x1c]
call fcn.004025d0
lea ecx, [esp + 0x1c]
call fcn.005dd410
lea ecx, [esp + 0x10]
call fcn.005dd410
mov eax, dword [0x809d38]
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.004027b0
inc eax
lea ecx, [esp + 0x1c]
push eax
call fcn.005dcfa0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041f5a0
lea ecx, [esp + 0x14]
call fcn.005dd410
lea edx, [esp + 0xc]
push 1
push edx
lea ecx, [esp + 0x1c]
call fcn.004025d0
push 1
push str.config
lea ecx, [esp + 0x24]
call fcn.004026a0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call fcn.00438280
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.004025d0
lea ecx, [esp + 0x1c]
call fcn.005dd410
lea ecx, [esp + 0x14]
call fcn.005dd410
mov edx, dword [0x809d38]
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edx
call fcn.004027b0
inc eax
lea ecx, [esp + 0x24]
push eax
call fcn.005dcfa0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
call fcn.0041f5a0
lea ecx, [esp + 0x10]
call fcn.005dd410
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xffffffff
jne 0x438227
mov edx, dword [esp + 0xc]
push 0
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call esi
cmp eax, 0xffffffff
jne 0x43823c
mov ecx, dword [esp + 0x18]
push 0
push ecx
call edi
mov edx, dword [esp + 0x20]
push edx
call esi
pop esi
cmp eax, 0xffffffff
pop ebp
jne 0x438253
mov eax, dword [esp + 0x18]
push 0
push eax
call edi
lea ecx, [esp + 0x18]
call fcn.005dd410
lea ecx, [esp + 0x10]
call fcn.005dd410
lea ecx, [esp + 4]
call fcn.005dd410
pop edi
add esp, 0x11c
ret