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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d7875
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4b0], ecx
mov byte [ebp - 0x4a5], 0
mov eax, dword [ebp - 0x4b0]
mov byte [eax], 0
mov dword [ebp - 0x4a4], 0
mov ecx, dword [ebp + 8]
call fcn.1000f5a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10030695
xor al, al
jmp 0x100308d8
mov ecx, dword [ebp + 0x10]
call fcn.1000f5a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100306bb
push 0
mov ecx, dword [ebp + 0x10]
call fcn.1000f5a0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
mov ecx, dword [ebp + 8]
call fcn.1000f5a0
push eax
call fcn.10040320
add esp, 8
mov dword [ebp - 0x4a4], eax
cmp dword [ebp - 0x4a4], 0
jne 0x100306e2
jmp 0x10030887
lea ecx, [ebp - 0x4a0]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x4a4]
push edx
call fcn.100400e0
add esp, 0xc
test eax, eax
je 0x10030703
jmp 0x10030887
mov dword [ebp - 0x4ac], 0
jmp 0x1003071e
mov eax, dword [ebp - 0x4ac]
add eax, 1
mov dword [ebp - 0x4ac], eax
mov ecx, dword [ebp - 0x4ac]
cmp ecx, dword [ebp - 0x4a0]
jge 0x1003087f
mov edx, dword [ebp - 0x4b0]
movzx eax, byte [edx]
test eax, eax
je 0x10030786
mov ecx, dword [ebp - 0x4a4]
push ecx
call fcn.10040170
add esp, 4
movzx edx, al
test edx, edx
je 0x1003076a
mov eax, dword [ebp - 0x4a4]
push eax
call fcn.1003ee50
add esp, 4
mov dword [ebp - 0x4b4], eax
jmp 0x1003077f
mov ecx, dword [ebp - 0x4a4]
push ecx
call fcn.10038b10
add esp, 4
mov dword [ebp - 0x4b4], eax
mov al, 1
jmp 0x100308d8
lea edx, [ebp - 0x270]
push edx
mov eax, dword [ebp - 0x4ac]
push eax
mov ecx, dword [ebp - 0x4a4]
push ecx
call fcn.100400e0
add esp, 0xc
test eax, eax
je 0x100307ac
jmp 0x1003070f
lea edx, [ebp - 0x26c]
push edx
push 0x101dab78
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.100023b0
add esp, 0xc
mov dword [ebp - 0x4b8], eax
mov edx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4bc], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.10002280
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.1000a9f0
mov ecx, dword [ebp + 0xc]
call fcn.1000f5a0
push eax
lea edx, [ebp - 0x26c]
push edx
call fcn.10030900
add esp, 8
test eax, eax
jne 0x10030830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000a9f0
jmp 0x1003070f
lea ecx, [ebp - 0x28]
call fcn.1000f5a0
push eax
mov eax, dword [ebp - 0x4ac]
push eax
mov ecx, dword [ebp - 0x4a4]
push ecx
call fcn.10040bb0
add esp, 0xc
test eax, eax
jne 0x1003085a
mov byte [ebp - 0x4a5], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000a9f0
jmp 0x1003087f
xor edx, edx
jne 0x1003067b
cmp dword [ebp - 0x4a4], 0
je 0x100308d2
mov eax, dword [ebp - 0x4a4]
push eax
call fcn.10040170
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x100308bd
mov edx, dword [ebp - 0x4a4]
push edx
call fcn.1003ee50
add esp, 4
mov dword [ebp - 0x4c0], eax
jmp 0x100308d2
mov eax, dword [ebp - 0x4a4]
push eax
call fcn.10038b10
add esp, 4
mov dword [ebp - 0x4c0], eax
mov al, byte [ebp - 0x4a5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret 0xc