Function at 0x10037c20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b8fea
mov eax, dword fs:[0]
push eax
mov eax, 0x2054
call fcn.1008c580
mov eax, dword [0x100dcdc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x2050], esi
xorps xmm0, xmm0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [esi], 0x1d4c0
movups xmmword [ebp - 0x2028], xmm0
mov dword [ebp - 0x2018], 0
mov dword [ebp - 0x2014], 7
mov word [ebp - 0x2028], ax
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 1
cmp eax, 1
jne 0x10037cf3
push 6
lea eax, [ebp - 0x2040]
push eax
call fcn.1002f510
mov edi, eax
add esp, 8
lea eax, [ebp - 0x2028]
cmp eax, edi
je 0x10037d43
mov ecx, dword [ebp - 0x2014]
cmp ecx, 7
jbe 0x10037d06
mov edx, dword [ebp - 0x2028]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10037cfc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10038183
jmp 0x10037cfc
cmp eax, 2
jne 0x10037d4e
push 7
jmp 0x10037c9c
push ecx
push edx
call fcn.1008c535
add esp, 8
xor eax, eax
mov dword [ebp - 0x2014], 7
mov dword [ebp - 0x2018], eax
mov word [ebp - 0x2028], ax
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x2028], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x2018], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x2040]
call fcn.100076d0
lea eax, [ebp - 0x2028]
push eax
call fcn.10034f00
mov edi, eax
mov dword [esi], 0x1d4c1
lea eax, [ebp - 0x2040]
push 0x176
push eax
call fcn.1002f220
add esp, 0xc
mov ecx, dword [0x100dde04]
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push eax
mov byte [ebp - 4], 2
call fcn.10015360
mov ecx, dword [ebp - 0x202c]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x10037dd1
mov edx, dword [ebp - 0x2040]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10037dc7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10038183
push ecx
push edx
call fcn.1008c535
add esp, 8
mov dword [esi], 0x1d4c2
cmp edi, 1
jne 0x10037f12
xor eax, eax
push eax
push eax
push eax
mov dword [ebp - 0x204c], eax
call fcn.1000bd10
mov ecx, eax
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x2054], ecx
test ecx, ecx
je 0x10037e96
cmp dword [ebp - 0x2014], 7
lea eax, [ebp - 0x2028]
push 1
cmova eax, dword [ebp - 0x2028]
push eax
push ecx
mov dword [esi], 0x1d4c3
call fcn.1000bde0
add esp, 0xc
mov dword [ebp - 0x2050], eax
test eax, eax
je 0x10037e88
lea ecx, [ebp - 0x2048]
mov dword [esi], 0x1d4c4
push ecx
push 0x2000
lea ecx, [ebp - 0x2010]
mov dword [ebp - 0x2048], edi
push ecx
push eax
call fcn.1000beb0
add esp, 0x10
test eax, eax
je 0x10037e7a
mov eax, dword [ebp - 0x200c]
cmp eax, 3
je 0x10037e78
cmp eax, 4
je 0x10037e78
mov edi, 1
jmp 0x10037e7a
xor edi, edi
push dword [ebp - 0x2050]
call fcn.1000b720
add esp, 4
push dword [ebp - 0x2054]
call fcn.1000b720
add esp, 4
lea eax, [ebp - 0x2040]
mov dword [esi], 0x1d4c5
push 0x174
push eax
call fcn.1002f220
add esp, 8
mov ecx, dword [0x100dde04]
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push eax
mov byte [ebp - 4], 3
call fcn.10015360
mov ecx, dword [ebp - 0x202c]
cmp ecx, 0xf
jbe 0x10037f07
mov edx, dword [ebp - 0x2040]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10037efd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10038183
push ecx
push edx
call fcn.1008c535
add esp, 8
mov edi, dword [ebp - 0x204c]
jmp 0x100380d1
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
mov dword [esi], 0x1d4c6
cmova eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x2048], eax
lea eax, [ebp - 0x2040]
push 0x175
push eax
mov dword [esi], 0x1d4c7
call fcn.1002f220
add esp, 8
mov ecx, eax
push 0
push 0
push 0
push 0
xor eax, eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2048], eax
push 0
push 0
setne al
push eax
push ecx
mov ecx, dword [0x100dde04]
call fcn.10015360
mov ecx, dword [ebp - 0x202c]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x10037fb2
mov edx, dword [ebp - 0x2040]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10037fa8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10038183
push ecx
push edx
call fcn.1008c535
add esp, 8
cmp edi, 2
jne 0x10037fc1
mov edi, 1
jmp 0x100380d1
cmp dword [ebp - 0x2048], 0
je 0x100380ce
push dword [ebp + 0x24]
lea eax, [ebp - 0x2048]
mov dword [ebp - 0x2048], 0
push 0x100dcd70
push eax
lea eax, [ebp - 0x2054]
mov byte [ebp - 0x2041], 0
push eax
lea eax, [ebp - 0x2041]
mov dword [ebp - 0x204c], 0
push eax
lea eax, [ebp - 0x204c]
mov dword [ebp - 0x2054], 0
push eax
sub esp, 0x18
mov dword [esi], 0x1d4c8
lea eax, [ebp - 0x2028]
mov dword [ebp - 0x2058], esp
mov ecx, esp
push eax
call fcn.10032ff0
sub esp, 0x18
mov byte [ebp - 4], 5
mov eax, esp
mov dword [ebp - 0x205c], esp
push 0x11
push eax
call fcn.1002f510
sub esp, 0x10
mov byte [ebp - 4], 6
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.10032ff0
mov byte [ebp - 4], 1
call fcn.100297a0
mov edi, dword [ebp - 0x204c]
mov byte [ebp - 0x2042], al
lea eax, [ebp - 0x2040]
push 0x16f
mov dword [esi], 0x1d4c9
mov esi, dword [ebp - 0x2048]
push eax
call fcn.1002f220
add esp, 0x68
mov ecx, eax
movzx eax, byte [ebp - 0x2042]
push 0
push 0
push 0
push 0
push esi
push edi
push eax
push ecx
mov ecx, dword [0x100dde04]
mov byte [ebp - 4], 7
call fcn.10015360
lea ecx, [ebp - 0x2040]
call fcn.100013f0
mov esi, dword [ebp - 0x2050]
mov edi, 2
jmp 0x100380d1
or edi, 0xffffffff
mov ecx, dword [ebp - 0x2014]
mov dword [esi], 0x1d4ca
cmp ecx, 7
jbe 0x10038113
mov edx, dword [ebp - 0x2028]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10038109
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10038183
push ecx
push edx
call fcn.1008c535
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x2018], 0
mov dword [ebp - 0x2014], 7
mov word [ebp - 0x2028], ax
cmp ecx, 7
jbe 0x10038166
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003815c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10038183
push ecx
push edx
call fcn.1008c535
add esp, 8
mov eax, edi
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.1008c543
mov esp, ebp
pop ebp
ret
call fcn.10091a0f
int3