Function at 0x10037a80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b8e7a
mov eax, dword fs:[0]
push eax
mov eax, 0x2054
call fcn.1008c410
mov eax, dword [0x100dcbc0]
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 0x10037b53
push 6
lea eax, [ebp - 0x2040]
push eax
call fcn.1002f500
mov edi, eax
add esp, 8
lea eax, [ebp - 0x2028]
cmp eax, edi
je 0x10037ba3
mov ecx, dword [ebp - 0x2014]
cmp ecx, 7
jbe 0x10037b66
mov edx, dword [ebp - 0x2028]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10037b5c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10037fe3
jmp 0x10037b5c
cmp eax, 2
jne 0x10037bae
push 7
jmp 0x10037afc
push ecx
push edx
call fcn.1008c3c5
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.10034d60
mov edi, eax
mov dword [esi], 0x1d4c1
lea eax, [ebp - 0x2040]
push 0x171
push eax
call fcn.1002f210
add esp, 0xc
mov ecx, dword [0x100ddbfc]
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 0x10037c31
mov edx, dword [ebp - 0x2040]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10037c27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10037fe3
push ecx
push edx
call fcn.1008c3c5
add esp, 8
mov dword [esi], 0x1d4c2
cmp edi, 1
jne 0x10037d72
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 0x10037cf6
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 0x10037ce8
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 0x10037cda
mov eax, dword [ebp - 0x200c]
cmp eax, 3
je 0x10037cd8
cmp eax, 4
je 0x10037cd8
mov edi, 1
jmp 0x10037cda
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 0x16f
push eax
call fcn.1002f210
add esp, 8
mov ecx, dword [0x100ddbfc]
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 0x10037d67
mov edx, dword [ebp - 0x2040]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10037d5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10037fe3
push ecx
push edx
call fcn.1008c3c5
add esp, 8
mov edi, dword [ebp - 0x204c]
jmp 0x10037f31
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 0x170
push eax
mov dword [esi], 0x1d4c7
call fcn.1002f210
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 [0x100ddbfc]
call fcn.10015360
mov ecx, dword [ebp - 0x202c]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x10037e12
mov edx, dword [ebp - 0x2040]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10037e08
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10037fe3
push ecx
push edx
call fcn.1008c3c5
add esp, 8
cmp edi, 2
jne 0x10037e21
mov edi, 1
jmp 0x10037f31
cmp dword [ebp - 0x2048], 0
je 0x10037f2e
push dword [ebp + 0x24]
lea eax, [ebp - 0x2048]
mov dword [ebp - 0x2048], 0
push 0x100dcb84
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.10032e50
sub esp, 0x18
mov byte [ebp - 4], 5
mov eax, esp
mov dword [ebp - 0x205c], esp
push 0xa
push eax
call fcn.1002f500
sub esp, 0x10
mov byte [ebp - 4], 6
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.10032e50
mov byte [ebp - 4], 1
call fcn.10029790
mov edi, dword [ebp - 0x204c]
mov byte [ebp - 0x2042], al
lea eax, [ebp - 0x2040]
push 0x16a
mov dword [esi], 0x1d4c9
mov esi, dword [ebp - 0x2048]
push eax
call fcn.1002f210
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 [0x100ddbfc]
mov byte [ebp - 4], 7
call fcn.10015360
lea ecx, [ebp - 0x2040]
call fcn.100013f0
mov esi, dword [ebp - 0x2050]
mov edi, 2
jmp 0x10037f31
or edi, 0xffffffff
mov ecx, dword [ebp - 0x2014]
mov dword [esi], 0x1d4ca
cmp ecx, 7
jbe 0x10037f73
mov edx, dword [ebp - 0x2028]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10037f69
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10037fe3
push ecx
push edx
call fcn.1008c3c5
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 0x10037fc6
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10037fbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10037fe3
push ecx
push edx
call fcn.1008c3c5
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.1008c3d3
mov esp, ebp
pop ebp
ret
call fcn.1009189f
int3