Function at 0x100313d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c5bee
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x1010739c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0xd8]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc0], esi
push eax
mov dword [ebp - 0x9c], 0
call fcn.1002e930
add esp, 4
mov dword [ebp - 4], 1
mov ecx, eax
push 1
push 0x100d7000
call fcn.100123d0
mov ecx, str.cache_scr.xua
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031445
sub ecx, edi
sar ecx, 1
push ecx
push str.cache_scr.xua
mov ecx, edx
call fcn.100123d0
push eax
lea ecx, [ebp - 0x48]
call fcn.10004130
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd8]
call fcn.100055d0
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x100d7004
mov word [esi], ax
call fcn.10009130
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
mov dword [ebp - 0x9c], 1
cmovae eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003189a
xor eax, eax
mov dword [ebp - 0xac], 0
push eax
mov dword [ebp - 0xa8], 0
lea ecx, [ebp - 0xbc]
push 0x100d7008
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
call fcn.10009130
mov byte [ebp - 4], 4
mov ecx, str.3A3E0B7B_EE29_4C97_B705_9C5A8DFDC845
xor eax, eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
lea edx, [ecx + 2]
mov word [ebp - 0x98], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031540
sub ecx, edx
sar ecx, 1
push ecx
push str.3A3E0B7B_EE29_4C97_B705_9C5A8DFDC845
lea ecx, [ebp - 0x98]
call fcn.10009130
mov byte [ebp - 4], 5
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10030220
add esp, 0x10
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x84]
cmp edx, 8
jb 0x100315c6
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100315bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100318c3
push edx
push ecx
call fcn.10050f3a
add esp, 8
xor eax, eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xa8]
cmp edx, 8
jb 0x10031627
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003161d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100318c8
push edx
push ecx
call fcn.10050f3a
add esp, 8
xor eax, eax
mov dword [ebp - 0xac], 0
push 0x38
push eax
mov word [ebp - 0xbc], ax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0xa8], 7
call fcn.1008f970
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.10004570
mov byte [ebp - 4], 9
lea edx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0
cmovae edx, dword [ebp - 0x30]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x84], 0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100316b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x98]
call fcn.10009130
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x80]
call fcn.10007b20
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x84]
cmp edx, 8
jb 0x10031727
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003171d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100318cd
push edx
push ecx
call fcn.10050f3a
add esp, 8
xor eax, eax
mov dword [ebp - 0x88], 0
mov word [ebp - 0x98], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x84], 7
test eax, eax
je 0x10031856
cmp byte [ebp - 0x14], 0
je 0x10031763
mov al, byte [eax + 0x80]
test al, al
jne 0x10031856
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x36ee80
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xa0], 0
call fcn.1002bc40
test eax, eax
jne 0x10031856
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100318d7
mov edx, dword [ebp - 0x14]
test dl, dl
je 0x100317ac
cmp byte [ecx + 0x80], al
jne 0x100318d7
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp esi, eax
je 0x100317ca
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x100317c1
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.10009130
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100317f6
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x100317f6
mov edx, dword [ecx + 0x8c]
test edx, edx
je 0x100317f0
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x100317f4
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x80]
call fcn.10005da0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x10031840
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031836
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100318d2
push edx
push ecx
call fcn.10050f3a
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
jmp 0x1003189a
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10031882
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x10031882
mov edx, dword [ecx + 0x8c]
test edx, edx
je 0x1003187c
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x10031880
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x80]
call fcn.10005da0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.100055d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100055d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100512b9
mov esp, ebp
pop ebp
ret
call fcn.10092f59
call fcn.10092f59
call fcn.10092f59
call fcn.10092f59
lea eax, [ebp - 0xa4]
push 4
push eax
call fcn.10009740
add esp, 8
push eax
call fcn.10045b1e
int3