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

Disassembly:
push 0xffffffffffffffff
push 0x4a33f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov edi, dword [ebp]
xor eax, eax
cmp dword [edi - 0xc], eax
mov dword [esp + 0x14], eax
jl 0x472979
lea eax, [edi - 0xc]
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x47299e
cmp edi, eax
mov ecx, dword [0x4c8db0]
mov dword [esp + 0x30], ecx
je 0x47298e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov ebx, eax
lea esi, [esp + 0x34]
call fcn.004725e0
mov edi, dword [esp + 0x30]
mov dword [esp + 0x28], 0
mov ebx, dword [0x4c8db0]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x28], 1
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
jne 0x4729cc
lea ebp, [eax - 0xf]
jmp 0x472b24
mov eax, dword [edi - 8]
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
je 0x4729f9
push 0x4b8618
push 0x4b8618
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esp + 0x34]
call fcn.004726e0
mov edi, dword [esp + 0x30]
mov eax, dword [edi - 8]
test eax, eax
jge 0x472a05
or eax, 0xffffffff
jmp 0x472a20
push 0x4b8618
push edi
call fcn.0048245a
add esp, 8
test eax, eax
jne 0x472a1c
or eax, 0xffffffff
jmp 0x472a20
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x472b18
lea esp, [esp]
lea ebp, [eax + 1]
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
lea ebx, [esp + 0x34]
call fcn.00472310
mov byte [esp + 0x28], 2
mov eax, dword [eax]
mov esi, dword [eax - 8]
push eax
lea eax, [esp + 0x20]
call fcn.004726e0
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x4c8da0
je 0x472a89
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x472a89
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00480167
add esp, 4
mov esi, dword [edi - 8]
mov ebx, ebp
test ebx, ebx
jle 0x472acc
test esi, esi
jle 0x472acc
cmp ebx, esi
jle 0x472a9c
mov ebx, esi
lea edi, [esp + 0x30]
call fcn.00472770
mov edi, dword [esp + 0x30]
mov eax, esi
sub eax, ebx
lea ecx, [eax + eax + 2]
mov eax, dword [edi - 4]
push ecx
lea edx, [edi + ebx*2]
push edx
lea ecx, [eax + eax + 2]
push ecx
push edi
call fcn.00417420
add esp, 0x10
sub esi, ebx
mov dword [edi - 8], esi
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x472ae9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x472b20
cmp dword [edi - 8], 0
jge 0x472af4
or eax, 0xffffffff
jmp 0x472b0f
push 0x4b8618
push edi
call fcn.0048245a
add esp, 8
test eax, eax
jne 0x472b0b
or eax, 0xffffffff
jmp 0x472b0f
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x472a30
mov dword [esp + 0x14], 1
mov ebp, dword [esp + 0x14]
lea edx, [ebx - 0xc]
cmp edx, 0x4c8da0
je 0x472b46
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x472b46
push esi
call fcn.00480167
add esp, 4
lea eax, [edi - 0xc]
cmp eax, 0x4c8da0
je 0x472b67
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x472b67
push edi
call fcn.00480167
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret