Function at 0x414133
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x60], edx
cmp dword [edi + 0x10], 0
je 0x4143c4
cmp dword [edi + 0x14], 8
jb 0x414162
mov eax, dword [edi]
jmp 0x414164
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4143c4
mov ecx, edi
call fcn.00413fcd
test al, al
je 0x4143c4
and dword [ebp - 0xc], 0
xor eax, eax
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.00419822
pop ecx
test al, al
je 0x4143af
push str.Crypt32.dll
lea ecx, [ebp - 0x34]
call fcn.0040276c
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
call fcn.004194ac
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00402c5d
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4143af
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptQueryObject
push ebx
call esi
push str.CryptMsgGetParam
push ebx
mov dword [ebp - 0x58], eax
call esi
push str.CryptMsgClose
push ebx
mov dword [ebp - 0x48], eax
call esi
push str.CertFindCertificateInStore
push ebx
mov dword [ebp - 0x5c], eax
call esi
push str.CertFreeCertificateContext
push ebx
mov dword [ebp - 0x68], eax
call esi
push str.CertCloseStore
push ebx
mov dword [ebp - 0x70], eax
call esi
push str.CertGetNameStringW
push ebx
mov dword [ebp - 0x54], eax
call esi
mov dword [ebp - 0x4c], eax
xor eax, eax
push 0x6c
push eax
mov byte [ebp - 0x35], al
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xdc]
push eax
call fcn.00435540
xor esi, esi
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x44], esi
jb 0x414271
mov edi, dword [edi]
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
push 2
push 0x400
push edi
push 1
call dword [ebp - 0x58]
test eax, eax
je 0x414387
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push 6
push dword [ebp - 0x3c]
call dword [ebp - 0x48]
test eax, eax
je 0x414387
push dword [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call esi
mov edi, eax
test edi, edi
je 0x414385
lea eax, [ebp - 0x44]
push eax
push edi
push 0
push 6
push dword [ebp - 0x3c]
call dword [ebp - 0x48]
test eax, eax
je 0x41437e
mov eax, dword [edi + 4]
mov dword [ebp - 0xc8], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0xc4], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xdc], eax
mov eax, dword [edi + 0x10]
push 0
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xe0]
push eax
push 0xb0000
push 0
push 0x10001
push dword [ebp - 0x40]
call dword [ebp - 0x68]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x41437e
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push 4
push eax
call dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
cmp eax, 1
je 0x414378
add eax, eax
push eax
push 0x40
call esi
push dword [ebp - 0x44]
mov esi, eax
push esi
push 0
push 0
push 4
push dword [ebp - 0x48]
call dword [ebp - 0x4c]
cmp eax, 1
je 0x41436d
push esi
call fcn.004011a9
pop ecx
mov ecx, dword [ebp - 0x60]
push eax
push esi
call fcn.00402f69
mov byte [ebp - 0x35], 1
test esi, esi
je 0x414378
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x48]
call dword [ebp - 0x70]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
cmp dword [ebp - 0x40], 0
je 0x414397
push esi
push dword [ebp - 0x40]
call dword [ebp - 0x54]
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x3c], 0
je 0x4143a6
push dword [ebp - 0x3c]
call dword [ebp - 0x5c]
mov dword [ebp - 0x3c], esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4143b3
mov byte [ebp - 0x35], 0
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402c5d
mov al, byte [ebp - 0x35]
jmp 0x4143c6
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret