Function at 0x1001cde0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004446a
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x1005a690]
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
mov dword [ebp - 0x42c], edx
mov ebx, ecx
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001ce42
xor bl, bl
jmp 0x1001ceff
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
push eax
push 0x1004a20c
push 0x17
push 0
push 0x10046498
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp - 0x424]
jns 0x1001ce79
xor bl, bl
jmp 0x1001cef1
xor ecx, ecx
mov dword [ebp - 0x428], ecx
test eax, eax
je 0x1001ceaf
mov ecx, dword [eax]
lea edx, [ebp - 0x428]
push edx
push 0x1004a1fc
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x428]
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x424]
cmovs ecx, edx
mov dword [ebp - 0x428], ecx
mov byte [ebp - 4], 2
test ecx, ecx
je 0x1001cedb
cmp dword [ebp + 0x1c], 8
mov eax, dword [ecx]
lea edx, [ebp + 8]
cmovae edx, dword [ebp + 8]
push 0
push edx
push ecx
call dword [eax + 0x14]
test eax, eax
jns 0x1001cf2f
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
xor bl, bl
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1001cef1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0
test eax, eax
je 0x1001ceff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 0x1c], 8
jb 0x1001cf11
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
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.1003e328
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [ebp - 0x424]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
lea edx, [ebp - 0x218]
push edx
push eax
call dword [ecx + 0x28]
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [ebp - 0x424]
add esp, 0xc
mov ecx, dword [eax]
push 0
push 0
push 0x104
lea edx, [ebp - 0x420]
push edx
push eax
call dword [ecx + 0xc]
test esi, esi
jne 0x1001d0ed
test eax, eax
jne 0x1001d0ed
lea eax, [ebp - 0x420]
push eax
mov ecx, ebx
call fcn.1000a110
push ecx
push str.__
mov ecx, ebx
call fcn.1001d110
cmp eax, 0xffffffff
je 0x1001d046
push ecx
push 0x1004a1f8
mov ecx, ebx
call fcn.1001d110
cmp eax, 0xffffffff
jne 0x1001d046
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x478]
call fcn.10009fd0
push eax
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 3
call fcn.1001d160
mov edx, eax
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 4
call fcn.1000bef0
add esp, 4
mov ecx, ebx
push eax
call fcn.1000a0a0
lea ecx, [ebp - 0x448]
call fcn.1000a0e0
lea ecx, [ebp - 0x460]
call fcn.1000a0e0
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 2
call fcn.1000a0e0
cmp word [ebp - 0x218], 0x20
lea edi, [ebp - 0x218]
jne 0x1001d05f
add edi, 2
cmp word [edi], 0x20
je 0x1001d056
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d064
sub ecx, edx
sar ecx, 1
je 0x1001d0e1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x448]
call fcn.10009fd0
mov esi, eax
push str.__
mov edx, ebx
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 5
call fcn.1000bb60
push esi
mov edx, eax
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 6
call fcn.1000be90
add esp, 8
mov ecx, ebx
push eax
call fcn.1000a0a0
lea ecx, [ebp - 0x478]
call fcn.1000a0e0
lea ecx, [ebp - 0x460]
call fcn.1000a0e0
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 2
call fcn.1000a0e0
mov ecx, dword [ebp - 0x42c]
push edi
call fcn.1000a110
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
mov bl, 1
jmp 0x1001cedd