Function at 0x1005cf10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d5788
push 0x10075530
mov eax, dword fs:[0]
push eax
add esp, 0xfffffb80
mov eax, dword [0x100db774]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
cmp dword [ebp + 0xc], 0
je 0x1005cf55
cmp dword [ebp + 8], 0
jne 0x1005cf5f
mov eax, 1
jmp 0x1005d306
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1005cf74
xor eax, eax
jmp 0x1005d306
call fcn.1005d7b0
test eax, eax
je 0x1005cf87
mov eax, 1
jmp 0x1005d306
xor ecx, ecx
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x43c], 0x10
mov edx, dword [ebp + 8]
mov dword [ebp - 0x438], edx
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xaac56b
mov eax, 0xcd44
mov word [ebp - 0x428], ax
mov ecx, 0x11d0
mov word [ebp - 0x426], cx
mov byte [ebp - 0x424], 0x8c
mov byte [ebp - 0x423], 0xc2
mov byte [ebp - 0x422], 0
mov byte [ebp - 0x421], 0xc0
mov byte [ebp - 0x420], 0x4f
mov byte [ebp - 0x41f], 0xc2
mov byte [ebp - 0x41e], 0x95
mov byte [ebp - 0x41d], 0xee
push 0x30
push 0
lea edx, [ebp - 0x46c]
push edx
call fcn.10075330
add esp, 0xc
mov dword [ebp - 0x46c], 0x30
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x460], 2
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 1
mov dword [ebp - 0x450], 1
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0x1080
mov dword [ebp - 0x440], 0
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x478], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x46c]
push ecx
lea edx, [ebp - 0x42c]
push edx
push 0
call sub.WINTRUST.dll_WinVerifyTrust
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
je 0x1005d10c
cmp dword [ebp - 0x47c], 0x800b0101
je 0x1005d10c
mov dword [ebp - 0x488], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x488]
jmp 0x1005d306
mov eax, dword [ebp - 0x44c]
push eax
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
mov dword [ebp - 0x470], eax
cmp dword [ebp - 0x470], 0
je 0x1005d289
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x474], 0
mov ecx, dword [ebp - 0x470]
cmp dword [ecx + 0x40], 0
jbe 0x1005d1aa
mov edx, dword [ebp - 0x470]
cmp dword [edx + 0x44], 0
je 0x1005d1aa
mov eax, dword [ebp - 0x470]
mov ecx, dword [eax + 0x44]
cmp dword [ecx + 0x28], 0
je 0x1005d1aa
mov edx, dword [ebp - 0x470]
mov eax, dword [edx + 0x44]
mov ecx, dword [eax + 0x28]
cmp dword [ecx + 0x10], 0
je 0x1005d1aa
mov edx, dword [ebp - 0x470]
mov eax, dword [edx + 0x44]
mov ecx, dword [eax + 0x28]
cmp dword [ecx + 0xc], 0
jbe 0x1005d1aa
mov edx, dword [ebp - 0x470]
mov eax, dword [edx + 0x44]
mov ecx, dword [eax + 0x28]
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ecx + 0x10]
mov edx, dword [eax + ecx]
mov dword [ebp - 0x474], edx
cmp dword [ebp - 0x474], 0
je 0x1005d289
mov eax, dword [ebp - 0x474]
cmp dword [eax + 0xc], 0
jbe 0x1005d289
mov ecx, dword [ebp - 0x474]
cmp dword [ecx + 0x10], 0
je 0x1005d289
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x474]
mov edx, dword [ecx + 0x10]
cmp dword [eax + edx], 0
je 0x1005d289
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x474]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x480], edx
cmp dword [ebp - 0x480], 0
je 0x1005d289
push 0x400
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.10075330
add esp, 0xc
push 0x200
lea ecx, [ebp - 0x41c]
push ecx
push 0
push 0
push 4
mov edx, dword [ebp - 0x480]
push edx
call dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0
jbe 0x1005d289
cmp dword [ebp - 0x484], 0x200
jae 0x1005d289
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call fcn.10085a3a
add esp, 8
test eax, eax
jne 0x1005d289
mov dword [ebp - 0x478], 1
mov edx, dword [ebp - 0x44c]
mov dword [ebp - 0x48c], edx
push 0x30
push 0
lea eax, [ebp - 0x46c]
push eax
call fcn.10075330
add esp, 0xc
mov dword [ebp - 0x46c], 0x30
mov ecx, dword [ebp - 0x48c]
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x450], 2
lea edx, [ebp - 0x46c]
push edx
lea eax, [ebp - 0x42c]
push eax
push 0
call sub.WINTRUST.dll_WinVerifyTrust
mov dword [ebp - 4], 0xfffffffe
jmp 0x1005d300
mov eax, dword [ebp - 0x478]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100693bc
mov esp, ebp
pop ebp
ret