Function at 0x4021f0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x41a8f6
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x42394c]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42394c]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
push str.Wintrust.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x1fe
mov edi, eax
call fcn.0040263e
push 0x1fe
call fcn.0040263e
push 0x1fe
call fcn.0040263e
push 0x1fe
call fcn.0040263e
add esp, 0x10
mov ebx, eax
push str.Ssport.cat
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
call fcn.00401c10
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov dword [esp + 0x24c], 0
or ecx, eax
jge 0x4022a4
push 0
lea ecx, [esp + 0x18]
call fcn.00401940
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
mov esi, edx
mov dword [esp + 0x2c], eax
call dword [0x424d38]
push eax
push esi
lea ecx, [esp + 0x34]
call fcn.00401890
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
cmp eax, ecx
je 0x4022d4
push eax
call fcn.0040afd4
add esp, 4
mov eax, dword [esp + 0x14]
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 0x4022fa
push esi
lea ecx, [esp + 0x18]
call fcn.00401940
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
mov ebp, eax
call esi
push eax
push ebx
push 0xffffffffffffffff
push ebp
push 0
push 0
call esi
push 0x100
lea edx, [esp + 0x144]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x140]
push 0x5c
push eax
call fcn.0040ae50
add eax, 1
mov byte [eax], 0
lea eax, [esp + 0x148]
add esp, 8
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x402351
mov ecx, dword [str.Ssport.cat]
mov edx, dword [0x41c5fc]
mov dword [eax], ecx
mov cx, word [0x41c600]
mov dword [eax + 4], edx
mov dl, byte [0x41c602]
mov word [eax + 8], cx
push 0x1fe
mov byte [eax + 0xa], dl
call fcn.0040263e
mov ebp, eax
add esp, 4
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401c10
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov byte [esp + 0x24c], 1
or ecx, eax
jge 0x4023ca
push 0
lea ecx, [esp + 0x1c]
call fcn.00401940
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
mov ebx, edx
mov dword [esp + 0x2c], ecx
call dword [0x424d38]
push eax
push ebx
lea ecx, [esp + 0x34]
call fcn.00401890
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
je 0x4023fa
push eax
call fcn.0040afd4
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax - 8]
sub ecx, dword [esp + 0x1c]
mov edx, 1
sub edx, dword [eax - 4]
or ecx, edx
jge 0x40242a
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401940
mov eax, dword [esp + 0x18]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
mov ebx, eax
call esi
push eax
push ebp
push 0xffffffffffffffff
push ebx
push 0
push 0
call esi
test edi, edi
mov dword [esp + 0x130], 0xf750e6c3
mov word [esp + 0x134], 0x38ee
mov word [esp + 0x136], 0x11d1
mov byte [esp + 0x138], 0x85
mov byte [esp + 0x139], 0xe5
mov byte [esp + 0x13a], 0
mov byte [esp + 0x13b], 0xc0
mov byte [esp + 0x13c], 0x4f
mov byte [esp + 0x13d], 0xc2
mov byte [esp + 0x13e], 0x95
mov byte [esp + 0x13f], 0xee
je 0x40253e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminAcquireContext
push edi
call esi
push str.CryptCATAdminAddCatalog
push edi
mov ebx, eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push edi
mov dword [esp + 0x30], eax
call esi
push str.CryptCATAdminRemoveCatalog
push edi
mov dword [esp + 0x24], eax
call esi
mov esi, eax
push 0
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x28]
push ecx
call ebx
test eax, eax
je 0x40253e
mov edx, dword [esp + 0x20]
push 0
push ebp
push edx
call esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0
push eax
push ebp
push ecx
call dword [esp + 0x38]
mov esi, eax
test esi, esi
jne 0x402527
push str.Fail_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x20]
push esi
push esi
push edx
jmp 0x40253a
push str.Success_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x20]
push 0
push esi
push eax
call dword [esp + 0x28]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402566
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 dword [esp + 0x24c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402591
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0040b062
add esp, 0x23c
ret