Function at 0x418660
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e7fb
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x4b8914]
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 ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
xor ebx, ebx
push 0x2c
mov dword [ebp - 0x520], ecx
mov dword [ebp - 0x4c8], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x508]
push ebx
push ecx
mov dword [ebp - 0x4d4], edx
mov dword [ebp - 0x530], eax
mov dword [ebp - 0x50c], ebx
call fcn.00473a10
xor eax, eax
push 0x208
lea edx, [ebp - 0x4b0]
push ebx
push edx
mov dword [ebp - 0x51c], ebx
mov dword [ebp - 0x518], eax
mov dword [ebp - 0x514], eax
mov dword [ebp - 0x510], eax
mov dword [ebp - 0x554], ebx
mov dword [ebp - 0x550], eax
mov dword [ebp - 0x54c], eax
mov dword [ebp - 0x548], eax
mov dword [ebp - 0x544], eax
mov dword [ebp - 0x540], eax
mov dword [ebp - 0x53c], eax
mov dword [ebp - 0x538], eax
mov dword [ebp - 0x534], eax
mov dword [ebp - 0x4b4], ebx
call fcn.00473a10
add esp, 0x18
push str.wintrust.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
jne 0x41875a
push str.wintrust.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x4188cc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminAcquireContext
push esi
call edi
mov dword [ebp - 0x4bc], eax
cmp eax, ebx
je 0x4188cc
push str.CryptCATAdminReleaseContext
push esi
call edi
mov dword [ebp - 0x4dc], eax
cmp eax, ebx
je 0x4188cc
push str.CryptCATAdminCalcHashFromFileHandle
push esi
call edi
mov dword [ebp - 0x528], eax
cmp eax, ebx
je 0x4188cc
push str.CryptCATAdminEnumCatalogFromHash
push esi
call edi
mov dword [ebp - 0x4d0], eax
cmp eax, ebx
je 0x4188cc
push str.CryptCATAdminReleaseCatalogContext
push esi
call edi
mov dword [ebp - 0x52c], eax
cmp eax, ebx
je 0x4188cc
push str.CryptCATCatalogInfoFromContext
push esi
call edi
mov dword [ebp - 0x524], eax
cmp eax, ebx
je 0x4188cc
push str.WinVerifyTrust
push esi
call edi
mov dword [ebp - 0x4d8], eax
cmp eax, ebx
je 0x4188cc
push str.WTHelperProvDataFromStateData
push esi
call edi
mov dword [ebp - 0x4c0], eax
cmp eax, ebx
je 0x4188cc
push ebx
push ebx
lea eax, [ebp - 0x4c4]
push eax
mov dword [ebp - 0x4c4], ebx
call dword [ebp - 0x4bc]
test eax, eax
je 0x4188cc
mov esi, dword [ebp - 0x4c8]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x4bc], eax
cmp eax, 0x104
jae 0x4188cc
mov edi, dword [esi + 0x14]
cmp edi, 0x10
jb 0x418853
mov eax, dword [esi]
jmp 0x418855
mov eax, esi
cmp eax, ebx
jbe 0x4188cc
push 0x206
lea edx, [ebp - 0x27a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x27c], cx
call fcn.00473a10
add esp, 0xc
cmp edi, 0x10
jb 0x418880
mov eax, dword [esi]
jmp 0x418882
mov eax, esi
mov edx, dword [ebp - 0x4bc]
push 0x104
lea ecx, [ebp - 0x27c]
push ecx
push edx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 3
push ebx
push 1
push accept
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push ebx
cmp esi, 0xffffffff
jne 0x4188ea
mov ecx, dword [ebp - 0x4c4]
push ecx
call dword [ebp - 0x4dc]
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.00471528
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x4cc]
push eax
push esi
mov dword [ebp - 0x4cc], 0x64
call dword [ebp - 0x528]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4cc]
xor ecx, ecx
lea eax, [eax + eax + 1]
mov edx, 2
mul edx
seto cl
push 0x4bb4c8
neg ecx
or ecx, eax
push ecx
call fcn.00475b17
add esp, 8
mov dword [ebp - 0x4bc], eax
cmp eax, ebx
je 0x4188cc
mov ecx, dword [ebp - 0x4cc]
xor esi, esi
cmp ecx, ebx
jbe 0x418974
mov edi, eax
lea ecx, [ecx]
movzx eax, byte [ebp + esi - 0x74]
push eax
push str._02X
push 3
push edi
call fcn.00475a39
mov ecx, dword [ebp - 0x4cc]
inc esi
add esp, 0x10
add edi, 4
cmp esi, ecx
jb 0x418950
mov edx, dword [ebp - 0x4c4]
push ebx
push ebx
push ecx
lea ecx, [ebp - 0x74]
push ecx
push edx
call dword [ebp - 0x4d0]
mov dword [ebp - 0x4d0], eax
cmp eax, ebx
jne 0x418a09
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x518], eax
mov eax, 1
lea ecx, [ebp - 0x51c]
mov dword [ebp - 0x51c], 0x10
mov dword [ebp - 0x514], ebx
mov dword [ebp - 0x510], ebx
mov dword [ebp - 0x50c], 0x30
mov dword [ebp - 0x4f8], eax
mov dword [ebp - 0x4f4], ecx
mov dword [ebp - 0x500], 2
mov dword [ebp - 0x4fc], ebx
mov dword [ebp - 0x4e4], 0x1000
cmp byte [ebp + 0x18], bl
jne 0x4189fe
mov dword [ebp - 0x4e4], 0x100
mov dword [ebp - 0x4f0], eax
jmp 0x418ab3
push ebx
lea edx, [ebp - 0x4b4]
push edx
push eax
call dword [ebp - 0x524]
mov edx, dword [ebp - 0x4bc]
lea eax, [ebp - 0x4b0]
mov dword [ebp - 0x54c], eax
lea ecx, [ebp - 0x27c]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x544], ecx
mov ecx, dword [ebp - 0x4cc]
mov dword [ebp - 0x548], edx
mov dword [ebp - 0x53c], eax
mov eax, 2
lea edx, [ebp - 0x554]
mov dword [ebp - 0x554], 0x24
mov dword [ebp - 0x538], ecx
mov dword [ebp - 0x50c], 0x30
mov dword [ebp - 0x4f8], eax
mov dword [ebp - 0x4f4], edx
mov dword [ebp - 0x500], eax
cmp byte [ebp + 0x18], bl
je 0x418a99
mov dword [ebp - 0x4fc], ebx
mov dword [ebp - 0x4e4], 0x1000
jmp 0x418aa9
mov dword [ebp - 0x4fc], 1
mov dword [ebp - 0x4e4], ebx
mov dword [ebp - 0x4f0], 1
lea edx, [ebp - 0x50c]
push edx
lea eax, [ebp - 0x28c]
push eax
push ebx
mov dword [ebp - 0x4e8], ebx
mov dword [ebp - 0x4ec], ebx
mov dword [ebp - 0x28c], 0xaac56b
mov dword [ebp - 0x288], 0x11d0cd44
mov dword [ebp - 0x284], 0xc000c28c
mov dword [ebp - 0x280], 0xee95c24f
call dword [ebp - 0x4d8]
cmp eax, ebx
setge cl
mov byte [ebp - 0x4b5], cl
cmp cl, bl
jne 0x418b3c
push eax
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.0040bd10
add esp, 8
mov ecx, dword [ebp - 0x530]
push eax
mov dword [ebp - 4], ebx
call fcn.004023a2
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 4], 0xffffffff
call fcn.00401064
mov edx, dword [ebp - 0x4ec]
push edx
call dword [ebp - 0x4c0]
mov dword [ebp - 0x4c0], eax
cmp eax, ebx
je 0x418c68
mov ecx, dword [eax + 0x44]
cmp ecx, ebx
je 0x418c68
mov ecx, dword [ecx + 0x18]
cmp ecx, ebx
je 0x418c68
mov esi, dword [ecx + 0xc]
mov edi, dword [ecx + 0x10]
cmp esi, ebx
je 0x418bc4
jmp 0x418b80
movzx ecx, byte [edi + esi - 1]
push ecx
lea edx, [ebp - 0x4c8]
xor eax, eax
push str._02x
push edx
mov byte [ebp - 0x4c8], bl
mov word [ebp - 0x4c7], ax
call fcn.004184e0
mov ecx, dword [ebp - 0x4d4]
add esp, 0xc
lea eax, [ebp - 0x4c8]
push eax
call fcn.00402629
dec esi
jne 0x418b80
mov eax, dword [ebp - 0x4c0]
mov ecx, dword [eax + 0x44]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 0x10]
mov esi, dword [eax]
mov dword [ebp - 0x4c0], esi
cmp esi, ebx
je 0x418c68
push str.crypt32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
jne 0x418bf9
push str.crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x418c68
push str.CertGetNameStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x418c68
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
push ebx
push ebx
push ebx
push 4
push eax
call edi
push 0x4bb4c8
push eax
mov dword [ebp - 0x4d4], eax
call fcn.00475b17
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x418c68
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ebp - 0x4c0]
mov eax, dword [edx + 0x10]
push ecx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push esi
push ebx
push ebx
push 4
push edx
call edi
mov ecx, dword [ebp - 0x520]
push esi
call fcn.00402d1e
push esi
call fcn.00473a8a
add esp, 4
lea eax, [ebp - 0x50c]
push eax
lea ecx, [ebp - 0x28c]
push ecx
push ebx
mov dword [ebp - 0x4f0], 2
call dword [ebp - 0x4d8]
mov eax, dword [ebp - 0x4d0]
cmp eax, ebx
je 0x418ca0
mov edx, dword [ebp - 0x4c4]
push ebx
push eax
push edx
call dword [ebp - 0x52c]
mov eax, dword [ebp - 0x4c4]
push ebx
push eax
call dword [ebp - 0x4dc]
mov ecx, dword [ebp - 0x4bc]
push ecx
call fcn.00473a8a
mov al, byte [ebp - 0x4b5]
add esp, 4
jmp 0x4188ce