Function at 0x412880
Capabilities:
Check if file exists
Create directory
Get file attributes
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59a831
push eax
mov dword fs:[0], esp
sub esp, 0x168
mov edx, dword [esp + 0x178]
lea eax, [esp + 0x68]
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push 0
push pe_nt_image_headers32
lea ecx, [esp + 0x3c]
push eax
push ecx
push edx
call fcn.0055b880
add esp, 0x20
test eax, eax
jne 0x412b5e
mov eax, dword [0x65ec1c]
mov dword [esp + 0x18], eax
mov edx, dword [0x663660]
lea ecx, [esp + 0x78]
push ecx
push str.idmmzcc3
push edx
lea eax, [esp + 0x24]
push 0x63ade0
push eax
mov dword [esp + 0x194], 0
call fcn.0058148b
add esp, 0x14
lea ecx, [esp + 0x18]
push 0x63a4cc
push 0x63addc
call fcn.00580eae
mov ecx, dword [0x65ec1c]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push 0x638fa8
push eax
mov byte [esp + 0x18c], 1
call fcn.0058148b
mov ecx, dword [esp + 0x20]
push 0x5c
push ecx
call fcn.0056c5b0
add esp, 0x14
test eax, eax
je 0x4129e8
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov byte [eax + 1], 0
mov edx, dword [esp + 0x14]
push edx
call edi
cmp eax, 0xffffffff
jne 0x4129e8
push 3
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.00588b2f
mov esi, eax
cmp esi, 0xffffffff
je 0x4129e8
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0058108d
mov eax, dword [eax]
push eax
call edi
cmp eax, 0xffffffff
lea ecx, [esp + 0x24]
sete bl
call fcn.005886c0
test bl, bl
je 0x4129d4
lea ecx, [esp + 0x20]
push esi
push ecx
lea ecx, [esp + 0x1c]
call fcn.0058108d
mov eax, dword [eax]
push 0
push eax
call ebp
test eax, eax
lea ecx, [esp + 0x20]
sete bl
call fcn.005886c0
test bl, bl
jne 0x4129e8
inc esi
lea ecx, [esp + 0x14]
push esi
push 0x5c
call fcn.00588b2f
mov esi, eax
cmp esi, 0xffffffff
jne 0x412985
push 0x2000
call fcn.0056cf20
mov edi, eax
add esp, 4
test edi, edi
jne 0x412a29
lea ecx, [esp + 0x14]
mov byte [esp + 0x180], al
call fcn.005886c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x180], 0xffffffff
call fcn.005886c0
mov eax, 0xffffff98
jmp 0x412b5e
mov edx, dword [0x65ec1c]
mov byte [esp + 0x13], 0
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x188]
mov byte [esp + 0x180], 2
push eax
call fcn.0055bd30
mov esi, eax
add esp, 4
test esi, esi
jne 0x412b10
mov ecx, dword [esp + 0x18]
push 0x63add8
push ecx
call fcn.0056dabf
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x412aa3
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push str._s
push eax
call fcn.0058148b
mov ecx, dword [esp + 0x28]
push 0x63add8
push ecx
call fcn.0056dabf
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x412b10
mov byte [esp + 0x13], 1
mov ebp, dword [esp + 0x188]
push 0x2000
push edi
push ebp
call fcn.0055c070
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x412aed
jle 0x412aed
push ebx
push 1
push esi
push edi
call fcn.0056d955
add esp, 0x10
cmp eax, 1
jne 0x412aea
push 0x2000
push edi
push ebp
call fcn.0055c070
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x412abf
jmp 0x412aed
or esi, 0xffffffff
push ebx
call fcn.0056d8d8
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x412b10
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.00412610
add esp, 8
mov ecx, dword [esp + 0x188]
push ecx
call fcn.0055c260
push edi
call fcn.0056c730
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], 1
call fcn.005886c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x180], 0
call fcn.005886c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x180], 0xffffffff
call fcn.005886c0
mov eax, esi
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x174
ret