Function at 0x10030940
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d78d3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
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 - 0x60], ecx
mov eax, dword [ebp - 0x60]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
call fcn.1000f5a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003098e
xor al, al
jmp 0x10030b47
push 0
mov ecx, dword [ebp + 0xc]
call fcn.1000f5a0
push eax
call fcn.10038dc0
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x100309b1
xor al, al
jmp 0x10030b47
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x10030aac
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x28]
call fcn.1001a248
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.100122c0
sub eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.1001a267
movzx eax, word [eax]
cmp eax, 0x2f
je 0x10030a08
mov ecx, dword [ebp + 8]
call fcn.100122c0
sub eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.1001a267
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x10030a47
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.100122c0
sub eax, 1
push eax
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x28]
call fcn.100140e0
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1000b620
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.1000a9f0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.1002bec0
add esp, 8
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x70]
push edx
lea ecx, [ebp - 0x28]
call fcn.1000b620
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.1000a9f0
lea ecx, [ebp - 0x28]
call fcn.1000f5a0
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x78]
push edx
call fcn.10039340
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000a9f0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x84], esp
mov dword [ebp - 0x7c], eax
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x88], esp
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x60]
push edx
call fcn.1002fb60
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 3
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x7c]
call fcn.1002f940
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 4
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.10031c30
add esp, 0x2c
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.10040170
add esp, 4
movzx edx, al
test edx, edx
je 0x10030b36
mov eax, dword [ebp - 0x5c]
push eax
call fcn.1003ee50
add esp, 4
mov dword [ebp - 0x80], eax
jmp 0x10030b45
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.10038b10
add esp, 4
mov dword [ebp - 0x80], eax
mov al, 1
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