Function at 0x100310b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100beebe
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x100fe39c]
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 - 0xd4]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xbc], esi
push eax
mov dword [ebp - 0x98], 0
call fcn.1002e610
add esp, 4
mov dword [ebp - 4], 1
mov ecx, eax
push 1
push 0x100cf0c0
call fcn.10012240
mov ecx, str.cache_scr.xua
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031125
sub ecx, edi
sar ecx, 1
push ecx
push str.cache_scr.xua
mov ecx, edx
call fcn.10012240
push eax
lea ecx, [ebp - 0x48]
call fcn.10003f90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd4]
call fcn.10005430
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x100cf0c4
mov word [esi], ax
call fcn.10008f70
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
mov dword [ebp - 0x98], 1
cmovae eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10031556
xor eax, eax
mov dword [ebp - 0xa8], 0
push eax
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0xb8]
push 0x100cf0c8
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
call fcn.10008f70
mov byte [ebp - 4], 4
mov ecx, str.3A3E0B7B_EE29_4C97_B705_9C5A8DFDC845
xor eax, eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
lea edx, [ecx + 2]
mov word [ebp - 0x94], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031216
sub ecx, edx
sar ecx, 1
push ecx
push str.3A3E0B7B_EE29_4C97_B705_9C5A8DFDC845
lea ecx, [ebp - 0x94]
call fcn.10008f70
mov byte [ebp - 4], 5
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1002ff00
add esp, 0x10
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x10031299
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003128f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003157f
push edx
push ecx
call fcn.1004f19d
add esp, 8
xor eax, eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xa4]
cmp edx, 8
jb 0x100312f7
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100312ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031584
push edx
push ecx
call fcn.1004f19d
add esp, 8
xor eax, eax
mov dword [ebp - 0xa8], 0
push 0x34
push eax
mov word [ebp - 0xb8], ax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0xa4], 7
call fcn.10087da0
add esp, 0xc
lea ecx, [ebp - 0x7c]
call fcn.100043d0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0
cmovae edx, dword [ebp - 0x30]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x80], 0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031372
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x94]
call fcn.10008f70
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10007970
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x100313e6
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100313dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031589
push edx
push ecx
call fcn.1004f19d
add esp, 8
xor eax, eax
mov dword [ebp - 0x84], 0
mov word [ebp - 0x94], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x80], 7
test eax, eax
je 0x10031512
cmp byte [ebp - 0x14], 0
je 0x1003141f
mov al, byte [eax + 0x80]
test al, al
jne 0x10031512
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x36ee80
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x9c], 0
call fcn.1002b940
test eax, eax
jne 0x10031512
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10031593
mov edx, dword [ebp - 0x14]
test dl, dl
je 0x10031468
cmp byte [ecx + 0x80], al
jne 0x10031593
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp esi, eax
je 0x10031486
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x1003147d
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.10008f70
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100314b2
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x100314b2
mov edx, dword [ecx + 0x8c]
test edx, edx
je 0x100314ac
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x100314b0
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x7c]
call fcn.10005c00
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x100314fc
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100314f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003158e
push edx
push ecx
call fcn.1004f19d
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
jmp 0x10031556
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003153e
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x1003153e
mov edx, dword [ecx + 0x8c]
test edx, edx
je 0x10031538
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x1003153c
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x7c]
call fcn.10005c00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.10005430
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.10005430
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.1004f51c
mov esp, ebp
pop ebp
ret
call fcn.1008b33c
call fcn.1008b33c
call fcn.1008b33c
call fcn.1008b33c
lea eax, [ebp - 0xa0]
push 4
push eax
call fcn.10009580
add esp, 8
push eax
call fcn.1004549c
int3