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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d76e0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x63ae80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [0x6470a0], 0
jne 0x413b2a
lea eax, [ebp - 0x28]
push eax
call fcn.0040f640
mov eax, dword [eax]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0x28]
push ecx
mov esi, eax
call fcn.004a4d8a
add esp, 4
mov eax, esi
jmp 0x413b36
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413b3f
cmp eax, 0xffffffff
je 0x413b3f
test al, 0x10
jne 0x413b8f
mov eax, ebx
call fcn.004136c0
test al, al
jne 0x413d81
mov eax, ebx
call fcn.004138f0
lea edi, [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.0040f3b0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0040f570
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
test eax, eax
js 0x413bae
lea ecx, [ebx - 1]
cmp eax, ecx
jne 0x413bae
cmp ebx, 1
jne 0x413ba3
mov edx, esi
push edx
call fcn.004a4d8a
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], ebx
mov word [esi + ecx*2], ax
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a4d50
add esp, 4
lea ecx, [ebx + ebx + 2]
push ecx
push esi
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.005a9de0
add esp, 0xc
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004139d0
test al, al
jne 0x413d37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x413d6c
test ebx, ebx
je 0x413d6c
movzx ecx, word [esi + ebx*2 - 2]
lea eax, [esi + ebx*2 - 2]
cmp ecx, 0x5c
je 0x413c3a
lea esp, [esp]
cmp cx, 0x2f
je 0x413c3a
cmp eax, esi
je 0x413d6c
movzx ecx, word [eax - 2]
sub eax, 2
cmp ecx, 0x5c
jne 0x413c20
sub eax, esi
sar eax, 1
mov edi, eax
js 0x413d6c
test edi, edi
je 0x413d6c
cmp edi, 1
jne 0x413c68
movzx eax, word [esi]
cmp eax, 0x5c
je 0x413d60
cmp eax, 0x2f
je 0x413d60
lea edx, [edi + 1]
cmp dword [ebp - 0x10], edx
jae 0x413d66
cmp edi, ebx
jae 0x413c83
mov ebx, edi
xor eax, eax
mov dword [ebp - 0x24], ebx
mov word [esi + edi*2], ax
mov ecx, esi
call fcn.004139d0
test al, al
je 0x413bf5
mov ebx, dword [ebp - 0x18]
cmp edi, ebx
jge 0x413d37
lea ecx, [ecx]
mov esi, dword [ebp - 0x1c]
movzx eax, word [esi + edi*2 + 2]
lea edx, [esi + edi*2 + 2]
mov ecx, edx
test ax, ax
je 0x413cd5
cmp ax, 0x5c
je 0x413ccf
cmp ax, 0x2f
je 0x413ccf
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x413cb3
mov edi, ebx
jmp 0x413cdd
sub ecx, edx
sar ecx, 1
jns 0x413cd9
mov edi, ebx
jmp 0x413cdd
lea edi, [edi + ecx + 1]
push esi
lea esi, [ebp - 0x28]
call fcn.0040f510
cmp byte [0x6470a0], 0
mov esi, dword [ebp - 0x28]
jne 0x413d22
lea ecx, [ebp - 0x34]
push ecx
mov ebx, esi
call fcn.0040f640
mov eax, dword [eax]
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp - 0x34]
push edx
mov ebx, eax
call fcn.004a4d8a
add esp, 4
test ebx, ebx
je 0x413d60
mov ebx, dword [ebp - 0x18]
jmp 0x413d2f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x413d60
cmp edi, ebx
jl 0x413ca0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004a4d8a
add esp, 4
push esi
call fcn.004a4d8a
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
push eax
jmp 0x413d70
mov ecx, dword [ebp - 0x1c]
push ecx
jmp 0x413d70
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004a4d8a
add esp, 4
push esi
call fcn.004a4d8a
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret