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

Disassembly:
push 0xffffffffffffffff
push 0x1005a4a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
mov eax, dword [0x10078c14]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
call fcn.1000d140
mov dword [esp + 0x30], 0
push 0x1006402c
lea ecx, [esp + 0x18]
call fcn.10002310
mov ebx, 1
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jne 0x10030801
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x14]
call fcn.10002690
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.10002690
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebp
cmp eax, 0xffffffff
je 0x10030817
test al, 0x10
jne 0x1003099b
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x1003099b
push 0x5c
push ecx
call fcn.10041e1d
add esp, 8
test eax, eax
je 0x1003083f
sub eax, dword [esp + 0x10]
sar eax, 1
mov esi, eax
jns 0x1003089c
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.1001f940
add esp, 0xc
mov byte [esp + 0x30], 2
push eax
lea ecx, [esp + 0x18]
call fcn.10003c80
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10030889
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x10067a94
lea ecx, [esp + 0x14]
call fcn.100122d0
jmp 0x1003096b
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
call fcn.10031090
mov byte [esp + 0x30], 4
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.1001f940
add esp, 0xc
mov byte [esp + 0x30], 5
push eax
lea ecx, [esp + 0x18]
call fcn.10003c80
mov byte [esp + 0x30], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100308fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003091e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
sub eax, esi
sub eax, ebx
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.10030fe0
mov byte [esp + 0x30], 8
push eax
lea ecx, [esp + 0x14]
call fcn.10003c80
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003096b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call ebp
cmp eax, 0xffffffff
jne 0x1003098c
mov edx, dword [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100307cd
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
jg 0x10030826
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x14]
call fcn.10002690
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.10002690
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret