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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f0100
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x65bf90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x18]
push 0x5c
lea eax, [ebp + 8]
dec esi
call fcn.0041338b
lea edi, [ebx + 0xf]
cmp esi, eax
je 0x47a6c3
push 0x2f
lea eax, [ebp + 8]
call fcn.0041338b
cmp esi, eax
jne 0x47a73f
push esi
push ebx
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 0x48]
call fcn.004042ca
mov esi, eax
lea ecx, [ebp + 8]
cmp ecx, esi
je 0x47a72a
cmp dword [ebp + 0x1c], 0x10
jb 0x47a6ec
mov edx, dword [ebp + 8]
push edx
call fcn.004ba2af
add esp, 4
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [esi + 0x14], 0x10
jae 0x47a70f
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [ebp + 8]
push esi
push eax
call fcn.005bdd60
add esp, 0xc
jmp 0x47a716
mov ecx, dword [esi]
mov dword [ebp + 8], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [ebp + 0x18], edx
mov eax, dword [esi + 0x14]
mov dword [ebp + 0x1c], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], 0x10
jb 0x47a73f
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ba2af
add esp, 4
cmp dword [ebp + 0x18], ebx
jne 0x47a74d
cmp dword [ebp + 0x1c], 0x10
jmp 0x47a8cd
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x47a759
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x47a77e
cmp dword [ebp + 0x1c], 0x10
jb 0x47a777
mov eax, dword [ebp + 8]
push eax
call fcn.004ba2af
add esp, 4
mov al, 1
jmp 0x47a8dd
push 0x5c
lea eax, [ebp + 8]
call fcn.0041338b
mov esi, eax
push 0x2f
lea eax, [ebp + 8]
call fcn.0041338b
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 2
cmp esi, eax
jle 0x47a7a7
mov eax, esi
cmp eax, 0xffffffff
je 0x47a829
push eax
push ebx
lea ecx, [ebp + 8]
push ecx
lea esi, [ebp - 0x48]
call fcn.004042ca
mov esi, eax
lea edx, [ebp - 0x2c]
cmp edx, esi
je 0x47a813
cmp dword [ebp - 0x18], 0x10
jb 0x47a7d5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba2af
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [esi + 0x14], 0x10
jae 0x47a7f8
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [ebp - 0x2c]
push esi
push ecx
call fcn.005bdd60
add esp, 0xc
jmp 0x47a7ff
mov edx, dword [esi]
mov dword [ebp - 0x2c], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 0x10
jb 0x47a829
mov edx, dword [ebp - 0x48]
push edx
call fcn.004ba2af
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.004025f3
call fcn.0047a670
add esp, 0x1c
mov esi, 0x10
cmp al, bl
je 0x47a8b0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], 0xc
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
cmp dword [ebp + 0x1c], esi
jae 0x47a86e
lea eax, [ebp + 8]
lea ecx, [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
sete byte [ebp - 0x49]
cmp dword [ebp - 0x18], esi
jb 0x47a891
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ba2af
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp + 0x1c], esi
jb 0x47a8ab
mov eax, dword [ebp + 8]
push eax
call fcn.004ba2af
add esp, 4
mov al, byte [ebp - 0x49]
jmp 0x47a8dd
cmp dword [ebp - 0x18], esi
jb 0x47a8c1
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004ba2af
add esp, 4
cmp dword [ebp + 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jb 0x47a8db
mov edx, dword [ebp + 8]
push edx
call fcn.004ba2af
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bdb17
mov esp, ebp
pop ebp
ret