Function at 0x401cd0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x41a8b1
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x42394c]
xor eax, esp
mov dword [esp + 0x334], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42394c]
xor eax, esp
push eax
lea eax, [esp + 0x34c]
mov dword fs:[0], eax
push str.Wintrust.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x1fe
mov dword [esp + 0x2c], eax
call fcn.0040263e
push 0x1fe
call fcn.0040263e
push 0x1fe
call fcn.0040263e
push 0x1fe
call fcn.0040263e
mov ebp, eax
push 0x1fe
mov dword [esp + 0x44], ebp
call fcn.0040263e
add esp, 0x14
push str.DgiVecp.cat
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.00401c10
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov dword [esp + 0x354], 0
or ecx, eax
jge 0x401d94
push 0
lea ecx, [esp + 0x1c]
call fcn.00401940
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x38]
mov esi, edx
mov dword [esp + 0x34], eax
call dword [0x424d38]
push eax
push esi
lea ecx, [esp + 0x3c]
call fcn.00401890
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x401dc4
push eax
call fcn.0040afd4
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, dword [eax - 0xc]
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x401dea
push esi
lea ecx, [esp + 0x1c]
call fcn.00401940
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
mov edi, eax
call esi
push eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x100
lea edx, [esp + 0x24c]
push edx
push 0
call ebp
lea eax, [esp + 0x248]
push 0x5c
push eax
call fcn.0040ae50
add eax, 1
mov byte [eax], 0
lea eax, [esp + 0x250]
add esp, 8
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401e43
mov ecx, dword [str.DgiVecp.cat]
mov edx, dword [0x41c5e0]
mov dword [eax], ecx
mov ecx, dword [0x41c5e4]
mov dword [eax + 4], edx
push 0x1fe
mov dword [eax + 8], ecx
call fcn.0040263e
add esp, 4
lea edx, [esp + 0x248]
mov ebx, eax
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], ebx
call fcn.00401c10
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov byte [esp + 0x354], 1
or ecx, eax
jge 0x401eb5
push 0
lea ecx, [esp + 0x18]
call fcn.00401940
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x38]
mov edi, edx
mov dword [esp + 0x34], eax
call dword [0x424d38]
push eax
push edi
lea ecx, [esp + 0x3c]
call fcn.00401890
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x401ee5
push eax
call fcn.0040afd4
add esp, 4
mov eax, dword [esp + 0x14]
mov edi, dword [eax - 0xc]
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x401f0b
push edi
lea ecx, [esp + 0x18]
call fcn.00401940
mov eax, dword [esp + 0x14]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
mov edi, eax
call esi
push eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
call esi
push 0x100
lea edx, [esp + 0x14c]
push edx
push 0
call ebp
lea eax, [esp + 0x148]
push 0x5c
push eax
call fcn.0040ae50
add eax, 1
mov byte [eax], 0
lea eax, [esp + 0x150]
add esp, 8
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401f58
mov ecx, dword [str.ssport.cat]
mov edx, dword [0x41c5d4]
mov dword [eax], ecx
mov cx, word [0x41c5d8]
mov dword [eax + 4], edx
mov dl, byte [0x41c5da]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x20]
call fcn.00401c10
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov byte [esp + 0x354], 2
or ecx, eax
jge 0x401fc2
push 0
lea ecx, [esp + 0x20]
call fcn.00401940
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
mov edi, edx
mov dword [esp + 0x34], ecx
call dword [0x424d38]
push eax
push edi
lea ecx, [esp + 0x3c]
call fcn.00401890
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x38]
cmp eax, edx
je 0x401ff2
push eax
call fcn.0040afd4
add esp, 4
mov eax, dword [esp + 0x1c]
mov edi, dword [eax - 0xc]
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x402018
push edi
lea ecx, [esp + 0x20]
call fcn.00401940
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
mov edi, eax
call esi
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call esi
mov ebx, dword [esp + 0x28]
test ebx, ebx
mov dword [esp + 0x138], 0xf750e6c3
mov word [esp + 0x13c], 0x38ee
mov word [esp + 0x13e], 0x11d1
mov byte [esp + 0x140], 0x85
mov byte [esp + 0x141], 0xe5
mov byte [esp + 0x142], 0
mov byte [esp + 0x143], 0xc0
mov byte [esp + 0x144], 0x4f
mov byte [esp + 0x145], 0xc2
mov byte [esp + 0x146], 0x95
mov byte [esp + 0x147], 0xee
je 0x402144
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminAcquireContext
push ebx
call esi
push str.CryptCATAdminAddCatalog
push ebx
mov ebp, eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov edi, eax
call esi
mov ecx, dword [esp + 0x28]
push str.CryptCATAdminRemoveCatalog
push ecx
mov ebx, eax
call esi
push 0
lea edx, [esp + 0x13c]
mov esi, eax
push edx
lea eax, [esp + 0x28]
push eax
call ebp
test eax, eax
je 0x402144
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push 0
push ebp
push ecx
call esi
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
push 0
push edx
push ebp
push eax
call edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push 0
push ecx
push edx
call edi
mov esi, eax
test esi, esi
jne 0x40212f
push str.Fail_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x20]
push esi
push esi
push eax
jmp 0x402142
push str.Success_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x20]
push 0
push esi
push ecx
call ebx
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x354], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40216c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x354], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402194
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x354], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.0040b062
add esp, 0x344
ret