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

Disassembly:
push 0xffffffffffffffff
push 0x58d596
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x24], ebp
lea eax, [esp + 0x14]
push eax
call fcn.004030f0
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x18]
push ecx
call fcn.004030f0
mov byte [esp + 0x24], 2
mov edx, dword [esp + 0x2c]
mov eax, dword [edx - 0xc]
cmp eax, ebp
mov ecx, dword [esp + 0x14]
jle 0x43086f
test ebp, ebp
jl 0x43090c
cmp ebp, eax
jg 0x43090c
mov bl, byte [edx + ebp]
mov edi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, edx
jge 0x430787
mov ecx, esi
lea eax, [esp + 0x14]
call fcn.00403340
mov ecx, dword [esp + 0x14]
mov byte [edi + ecx], bl
test esi, esi
jl 0x43090c
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x43090c
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
mov byte [esi + edx], 0
cmp bl, 0x5c
je 0x4307b8
cmp bl, 0x2f
jne 0x43085b
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x430807
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x430807
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x430807
call esi
cmp eax, 5
je 0x430807
call esi
mov edx, dword [esp + 0x2c]
push eax
push edx
push str.Create_Directory__s_is_failed__error__u.
mov esi, 0x602250
call fcn.00409e30
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x43085f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x43084e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x43084e
call fcn.004066f0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x430845
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x43085b
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.004033b0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx - 0xc]
inc ebp
cmp ebp, eax
jl 0x43074e
cmp dword [esp + 0x30], 0
je 0x430923
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4308c5
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4308c5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x4308c5
call esi
cmp eax, 5
je 0x4308c5
call esi
mov edx, dword [esp + 0x2c]
push eax
push edx
push str.Create_Directory__s_is_failed__error__u.
mov esi, 0x602250
call fcn.00409e30
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x430923
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x430916
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x430916
call fcn.004066f0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x430903
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x430923
push 0x80070057
call fcn.00401e70
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.004033b0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov esi, eax
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x430955
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43097a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4309a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret