Function at 0x1018d4a0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023ef9e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], esi
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x44]
mov eax, 1
mov dword [ebp - 0x4c], eax
call fcn.1018d1a0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x34], 0
je 0x1018d59b
cmp dword [ebp - 0x30], 8
lea edx, [ebp - 0x44]
mov dword [ebp - 0x2c], 0
cmovae edx, dword [ebp - 0x44]
mov ecx, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1018d560
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.1000aef0
cmp dword [ebp - 0x18], 8
mov eax, 3
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0x45], 1
test eax, eax
jne 0x1018d59f
mov byte [ebp - 0x45], 0
mov eax, dword [ebp - 0x4c]
test al, 2
je 0x1018d5b4
and eax, 0xfffffffd
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
call fcn.1000ae90
cmp byte [ebp - 0x45], 0
je 0x1018d675
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push ecx
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.1014f860
add esp, 4
test al, al
je 0x1018d669
mov eax, dword [ebp - 0x1c]
cmp eax, 0x26
jb 0x1018d669
mov ecx, 0x26
mov dword [ebp - 0x64], 0
cmovb ecx, eax
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x64]
push eax
mov dword [ebp - 0x50], 0
call fcn.1000aef0
or dword [ebp - 0x4c], 4
lea eax, [ebp - 0x64]
cmp esi, eax
je 0x1018d661
mov ecx, esi
call fcn.1000ae90
movups xmm0, xmmword [ebp - 0x64]
xor eax, eax
mov word [ebp - 0x64], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
lea ecx, [ebp - 0x64]
call fcn.1000ae90
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1000ae90
cmp dword [esi + 0x10], 0
jne 0x1018d740
mov ecx, esi
call fcn.1016d110
test al, al
jne 0x1018d698
push 0x26
push str.WDEFAULT_D7CA_4F31_B4C0_15DB86C98250
mov ecx, esi
call fcn.10010360
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x1018d6a2
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1018d6c0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.1000aef0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x2c], 0
cmovae edx, dword [ebp - 0x44]
mov ecx, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1018d702
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.1000aef0
sub esp, 8
mov byte [ebp - 4], 4
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x2c]
call fcn.1014f5e0
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.1000ae90
lea ecx, [ebp - 0x64]
call fcn.1000ae90
lea ecx, [ebp - 0x44]
call fcn.1000ae90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret