Function at 0x10016af0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c1fb
mov eax, dword fs:[0]
push eax
mov eax, 0x122c
call fcn.1002c8c0
mov eax, dword [0x10080440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10082a70], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1238], eax
jne 0x10016cb5
call fcn.1002a730
test al, al
je 0x10016b56
pop esi
pop ecx
pop edi
push ebx
pop ecx
push edi
push eax
pop edi
push ebp
push edi
push eax
pop eax
push esp
push edx
push ebx
pop eax
pop edi
push ebp
pop ebp
push ecx
pop edx
call fcn.1002ae30
test al, al
je 0x10016b72
push esp
pop esp
push edi
pop ecx
pop ebp
push esp
push esp
pop eax
push esi
push esi
push ebp
pop esp
pop ebx
pop ebx
push edi
pop esp
push esp
pop edi
push edx
call fcn.1002a960
test al, al
je 0x10016b99
push edx
push edi
pop eax
pop esp
push edi
pop ebx
pop esi
pop ebp
push esi
pop edi
push esp
push ecx
pop eax
push eax
push ecx
push ebp
push ecx
push ebp
pop esp
push esp
pop edx
pop esp
pop ebp
pop eax
pop esp
pop ebx
pop esi
push edi
push edi
pop ebp
push 0x206
lea eax, [ebp - 0x216]
push 0
push eax
call fcn.10044800
movups xmm0, xmmword [0x10062310]
mov eax, dword [0x10062330]
add esp, 0xc
mov dword [ebp - 0x1f8], eax
lea eax, [ebp - 0x218]
movups xmmword [ebp - 0x218], xmm0
movups xmm0, xmmword [0x10062320]
push eax
movups xmmword [ebp - 0x208], xmm0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10016c95
cmp dword [0x10082a98], 8
lea ecx, [ebp - 0x1231]
mov eax, 0x10082a84
cmovae eax, dword [0x10082a84]
push eax
lea eax, [ebp - 0x1230]
push eax
call fcn.10016920
push 0xa
push str.ResLog.dll
lea ecx, [ebp - 0x1230]
mov dword [ebp - 4], 0
call fcn.1000d6b0
mov esi, dword [ebp - 0x121c]
lea ecx, [ebp - 0x1230]
cmp esi, 8
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x1230]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x10016c46
mov dword [ebp - 4], 0xffffffff
cmp esi, 8
jb 0x10016c78
lea eax, [esi + 1]
push eax
push dword [ebp - 0x1230]
lea ecx, [ebp - 0x1230]
call fcn.10008830
xor eax, eax
mov dword [ebp - 0x121c], 7
mov dword [ebp - 0x1220], 0
mov word [ebp - 0x1230], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10082a70], eax
test eax, eax
je 0x10016ddc
mov eax, dword [ebp - 0x1238]
push 0
push 0x1005f708
mov ecx, eax
call fcn.10008730
call fcn.1002a8f0
test al, al
je 0x10016ce3
pop edx
pop ebx
pop esi
push edi
pop edi
push ecx
pop edx
push ebp
pop eax
pop ebp
push edx
push eax
push eax
pop edx
push edi
pop esp
pop eax
push ebx
pop edi
pop edx
push edx
pop eax
push esi
call fcn.1002a340
test al, al
je 0x10016d06
pop esp
push ebx
push eax
pop edi
pop ecx
pop edx
push ebp
push eax
pop ecx
push edi
pop eax
pop ebx
push edi
pop ecx
push ebx
pop edi
push eax
pop ecx
push edi
pop esp
push ebx
pop edi
push edx
pop edi
push edx
pop esi
push 0x800
lea eax, [ebp - 0x1218]
push eax
push dword [ebp + 8]
push dword [0x10082a70]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x10016d7a
cmp word [ebp - 0x1218], 0
jne 0x10016d4b
xor ecx, ecx
lea eax, [ebp - 0x1218]
push ecx
mov ecx, dword [ebp - 0x1238]
push eax
call fcn.10008730
mov al, 1
jmp 0x10016dde
lea ecx, [ebp - 0x1218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016d54
sub ecx, edx
lea eax, [ebp - 0x1218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x1238]
push eax
call fcn.10008730
mov al, 1
jmp 0x10016dde
call fcn.1002aab0
test al, al
je 0x10016d9e
push ecx
pop esp
push eax
pop ebp
push esi
pop eax
pop esp
push eax
push esi
pop ecx
pop eax
push ebp
pop eax
pop esi
push edx
pop edi
pop ebp
push edx
push eax
pop ebx
pop edx
pop edx
push esi
push esi
pop edx
pop ebp
pop ebx
call fcn.1002ab20
test al, al
je 0x10016dbe
pop esp
push eax
push esi
push esi
push ebp
push esi
pop eax
pop ecx
pop eax
push edi
push edi
pop ebx
push esp
pop esp
push esi
pop ecx
push esi
push esi
push ebx
pop esi
push edx
pop esp
pop eax
call fcn.1002a650
test al, al
je 0x10016ddc
push ebp
push ecx
pop esp
push ecx
pop ebp
push ecx
push esp
push ecx
pop esp
pop edi
push edi
pop ebp
push edi
push esp
pop ebx
push ecx
push edi
pop ebx
pop eax
pop ebx
push ebp
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c484
mov esp, ebp
pop ebp
ret