Function at 0x401fb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c946
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x425a8c]
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
push str.Wintrust.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x1fe
mov edi, eax
call fcn.004029fd
push 0x1fe
call fcn.004029fd
push 0x1fe
call fcn.004029fd
push 0x1fe
call fcn.004029fd
add esp, 0x10
push str.Ssport.cat
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x134], eax
call fcn.004019b0
mov edx, dword [ebp - 0x128]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov dword [ebp - 4], 0
or ecx, eax
jge 0x40205b
push 0
lea ecx, [ebp - 0x128]
call fcn.00401640
mov edx, dword [ebp - 0x128]
push 3
lea eax, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x240], eax
call fcn.00401580
mov eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x23c]
cmp eax, ecx
je 0x40208e
push eax
call fcn.0040cb74
add esp, 4
mov eax, dword [ebp - 0x128]
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 0x4020ba
push esi
lea ecx, [ebp - 0x128]
call fcn.00401640
mov eax, dword [ebp - 0x128]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
mov ebx, eax
call esi
mov edx, dword [ebp - 0x134]
push eax
push edx
push 0xffffffffffffffff
push ebx
push 0
push 0
call esi
push 0x100
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x110]
push 0x5c
push ecx
call fcn.0040c990
inc eax
mov byte [eax], 0
lea eax, [ebp - 0x110]
add esp, 8
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402110
mov edx, dword [str.Ssport.cat]
mov ecx, dword [0x41e4f8]
mov dword [eax], edx
mov dx, word [0x41e4fc]
mov dword [eax + 4], ecx
mov cl, byte [0x41e4fe]
mov word [eax + 8], dx
push 0x1fe
mov byte [eax + 0xa], cl
call fcn.004029fd
add esp, 4
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x12c]
mov ebx, eax
call fcn.004019b0
mov edx, dword [ebp - 0x12c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov byte [ebp - 4], 1
or ecx, eax
jge 0x40218a
push 0
lea ecx, [ebp - 0x12c]
call fcn.00401640
mov edx, dword [ebp - 0x12c]
push 3
lea eax, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x240], eax
call fcn.00401580
mov eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x23c]
cmp eax, ecx
je 0x4021bd
push eax
call fcn.0040cb74
add esp, 4
mov eax, dword [ebp - 0x12c]
mov edx, dword [eax - 0xc]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x124], edx
sub ecx, dword [ebp - 0x124]
mov edx, 1
sub edx, dword [eax - 4]
or ecx, edx
jge 0x4021f9
mov eax, dword [ebp - 0x124]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00401640
mov eax, dword [ebp - 0x12c]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
mov dword [ebp - 0x124], eax
call esi
mov ecx, dword [ebp - 0x124]
push eax
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
call esi
mov edx, 0x38ee
mov eax, 0x11d1
mov dword [ebp - 0x120], 0xf750e6c3
mov word [ebp - 0x11c], dx
mov word [ebp - 0x11a], ax
mov byte [ebp - 0x118], 0x85
mov byte [ebp - 0x117], 0xe5
mov byte [ebp - 0x116], 0
mov byte [ebp - 0x115], 0xc0
mov byte [ebp - 0x114], 0x4f
mov byte [ebp - 0x113], 0xc2
mov byte [ebp - 0x112], 0x95
mov byte [ebp - 0x111], 0xee
test edi, edi
je 0x40232d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminAcquireContext
push edi
call esi
push str.CryptCATAdminAddCatalog
push edi
mov dword [ebp - 0x13c], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push edi
mov dword [ebp - 0x138], eax
call esi
push str.CryptCATAdminRemoveCatalog
push edi
mov dword [ebp - 0x124], eax
call esi
push 0
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x130]
push edx
mov esi, eax
call dword [ebp - 0x13c]
test eax, eax
je 0x40232d
mov eax, dword [ebp - 0x130]
push 0
push ebx
push eax
call esi
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x130]
push 0
push ecx
push ebx
push edx
call dword [ebp - 0x138]
mov esi, eax
test esi, esi
jne 0x402312
push str.Fail_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x130]
push esi
push esi
push eax
jmp 0x402327
push str.Success_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x130]
push 0
push esi
push ecx
call dword [ebp - 0x124]
mov eax, dword [ebp - 0x12c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402353
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40237c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0040ca0e
mov esp, ebp
pop ebp
ret