Function at 0x40c4a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d33b
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x441018]
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 edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40c4dc
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40c4f2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c686
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40c686
mov edi, dword [0x4430ac]
test edi, edi
je 0x40c530
mov ecx, edi
call dword [0x42f1a4]
call edi
cmp eax, 0x12c
jg 0x40c67c
push str.GetSimpleDisplayCertNameFromFile:_File__s_does_not_exist.
lea ecx, [ebp - 0x118]
call fcn.0040eca0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x6c]
mov ecx, eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], fcn.00405a30
mov dword [ebp - 0x64], 0x40e0d0
call fcn.00405900
mov edx, 0x12c
mov ecx, eax
call fcn.0040e960
cmp byte [ebp - 0x88], 0
je 0x40c5ae
mov edi, dword [ebp - 0x80]
test edi, edi
je 0x40c5a7
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x42f1a4]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x40c5a7
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x42f1a4]
mov ecx, edi
call esi
mov byte [ebp - 0x88], 0
lea ecx, [ebp - 0xd0]
call fcn.0040bd30
mov edx, dword [ebp - 0xd8]
cmp edx, 8
jb 0x40c5f9
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c5ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c8fb
push edx
push ecx
call fcn.00413d29
add esp, 8
mov edx, dword [ebp - 0x10c]
xor eax, eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
test edx, edx
je 0x40c671
mov ecx, dword [ebp - 0x104]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40c649
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c8fb
push ecx
push edx
call fcn.00413d29
add esp, 8
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
lea ecx, [ebp - 0x118]
call fcn.00404f80
mov eax, 2
jmp 0x40c8df
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x20], 0xaac56b
mov dword [ebp - 0x1c], 0x11d0cd44
mov dword [ebp - 0x18], 0xc000c28c
mov dword [ebp - 0x14], 0xee95c24f
mov dword [ebp - 0x60], 0x10
jb 0x40c6b1
mov esi, dword [esi]
movzx eax, byte [ebp + 0xc]
mov ecx, 0x1212
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0
lea eax, [eax*2 + 2]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x38], eax
mov eax, 0x1012
cmovne eax, ecx
mov dword [ebp - 0x50], 0x30
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x4c], 0
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
mov ebx, eax
test ebx, ebx
jne 0x40c8c6
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x78]
call fcn.0040c260
push eax
mov ecx, edi
call fcn.0040a1a0
lea ecx, [ebp - 0x78]
call fcn.00401d90
mov esi, dword [0x4430ac]
test esi, esi
je 0x40c77b
mov ecx, esi
call dword [0x42f1a4]
call esi
cmp eax, 0x46
jg 0x40c8c6
push str.GetSimpleDisplayCertNameFromFile:_Found_cert_name:__s.
lea ecx, [ebp - 0x1b8]
call fcn.0040eca0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x6c]
mov ecx, eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], fcn.00405a30
mov dword [ebp - 0x64], 0x40e0d0
call fcn.00405900
mov edx, 0x46
mov ecx, eax
call fcn.0040e960
cmp byte [ebp - 0x128], 0
je 0x40c7fc
mov edi, dword [ebp - 0x120]
test edi, edi
je 0x40c7f5
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x42f1a4]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x40c7f5
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x42f1a4]
mov ecx, edi
call esi
mov byte [ebp - 0x128], 0
lea ecx, [ebp - 0x170]
call fcn.0040bd30
mov edx, dword [ebp - 0x178]
cmp edx, 8
jb 0x40c847
mov ecx, dword [ebp - 0x18c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c83d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c900
push edx
push ecx
call fcn.00413d29
add esp, 8
mov edx, dword [ebp - 0x1ac]
xor eax, eax
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 7
mov word [ebp - 0x18c], ax
test edx, edx
je 0x40c8bb
mov ecx, dword [ebp - 0x1a4]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40c893
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c900
push ecx
push edx
call fcn.00413d29
add esp, 8
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
lea ecx, [ebp - 0x1b8]
call fcn.00404f80
lea eax, [ebp - 0x50]
mov dword [ebp - 0x34], 2
push eax
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
mov eax, ebx
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.00413d18
mov esp, ebp
pop ebp
ret
call fcn.0041822f
call fcn.0041822f
int3