Function at 0x40ca60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4179ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 8]
mov dword [esp + 0x20], esi
cmp eax, edi
je 0x40d0f7
lea ebp, [esi + 0x244]
push ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x23c]
mov eax, dword [ecx]
cmp eax, ecx
je 0x40cada
mov edx, dword [esp + 0xcc]
mov ebx, dword [eax + 8]
cmp ebx, edx
je 0x40cacf
mov eax, dword [eax]
cmp eax, ecx
jne 0x40caaf
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40d0f7
add eax, 8
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x40cae6
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40d0f7
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push edi
push edi
push 6
push edx
mov dword [esp + 0x24], edi
call dword [eax + 0x32]
add esp, 0x14
test eax, eax
je 0x40cb0d
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40d0f7
mov ebx, dword [esp + 0xd0]
mov eax, dword [esi + 8]
lea edx, [esp + 0x44]
lea ecx, [esp + 0xa0]
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x10]
push 1
push ecx
push ebx
push edx
mov dword [esp + 0x54], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb8], 4
call dword [eax + 0x62]
add esp, 0x10
test eax, eax
je 0x40cb6c
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 8]
push ecx
call dword [eax + 0x36]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40d0f7
cmp dword [esp + 0x44], 1
je 0x40cb8d
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 8]
push eax
call dword [edx + 0x36]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40d0f7
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x7c]
push 3
push edx
push ebx
push eax
mov dword [esp + 0x8c], 0x102
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], 0x11
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], 0x80455053
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
call dword [ecx + 0x62]
add esp, 0x10
cmp eax, edi
je 0x40cc0c
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 8]
push edx
call dword [ecx + 0x36]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40d0f7
mov eax, dword [esp + 0x84]
inc eax
push eax
call sub.MFC42u.DLL_operatornew
mov ebp, eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x94]
mov dword [esp + 0xc8], edi
inc ecx
push ecx
call sub.MFC42u.DLL_operatornew
mov edi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], edi
mov edx, dword [esp + 0xa4]
mov byte [esp + 0xcc], 1
inc edx
push edx
call sub.MFC42u.DLL_operatornew
mov ebx, eax
mov dword [esp + 0xc4], ebx
mov eax, dword [esp + 0x90]
mov dword [esp + 0x98], edi
mov edi, ebp
mov dword [esp + 0x8c], ebp
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
mov dword [esp + 0xa4], ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 3
and ecx, 3
mov byte [esp + 0xd4], 2
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xa0]
mov edi, dword [esp + 0x9c]
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xac]
mov edi, dword [esp + 0xa8]
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0xe0]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 8]
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
call dword [eax + 0x62]
xor ecx, ecx
add esp, 0x1c
cmp eax, ecx
je 0x40cd3a
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 8]
push eax
call dword [edx + 0x36]
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call sub.MFC42u.DLL_operatordelete
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42u.DLL_operatordelete
push ebp
call sub.MFC42u.DLL_operatordelete
add esp, 0xc
jmp 0x40d0f7
push 0x423924
push 0x10000
push ecx
push ecx
push 0xd
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], ecx
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov edi, eax
test edi, edi
mov dword [esp + 0x4c], edi
jne 0x40cd97
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 8]
push ecx
call dword [eax + 0x36]
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42u.DLL_operatordelete
push ebp
call sub.MFC42u.DLL_operatordelete
add esp, 0xc
jmp 0x40d0f7
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
mov ebp, eax
xor edi, edi
cmp ebp, edi
je 0x40ce2a
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 4]
mov esi, dword [esp + 0x1c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40cdc8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40ce05
mov esi, dword [sym.imp.CRYPT32.dll_CertGetCertificateContextProperty]
lea ecx, [esp + 0x28]
push ecx
push eax
push 0xb
push ebp
call esi
test eax, eax
je 0x40ce19
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40ce19
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
lea edx, [esp + 0x28]
mov dword [esp + 0x34], eax
push edx
push eax
push 0xb
push ebp
call esi
test eax, eax
je 0x40ce19
mov eax, dword [esp + 0x4c]
push ebp
push eax
call dword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
mov ebp, eax
test ebp, ebp
jne 0x40cdb3
jmp 0x40ce24
test ebp, ebp
je 0x40ce24
push ebp
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov esi, dword [esp + 0x20]
xor edi, edi
mov ecx, dword [esp + 0x4c]
push edi
push ecx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x40ceba
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0xd0]
push 1
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 8]
push edx
push ecx
mov dword [esp + 0x48], 0x80455055
call dword [eax + 0x66]
mov edx, dword [esp + 0x44]
mov ebp, eax
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 0x14
cmp ebp, edi
je 0x40ceba
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 8]
push ecx
call dword [eax + 0x36]
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x50]
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 0xc
jmp 0x40d0f7
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
lea ecx, [esp + 0x60]
mov byte [esp + 0xc4], 4
call fcn.00407840
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x74], edi
mov byte [esp + 0x78], 0
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x30], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x6c], ecx
lea edx, [esp + 0x17]
push edi
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0xcc], 6
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call fcn.00401e80
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x16]
repne scasb al, byte es:[edi]
mov al, byte [esp + 0x17]
push edx
not ecx
dec ecx
mov byte [esp + 0xc8], 7
add ecx, ebx
mov byte [esp + 0x1a], al
push ecx
push ebx
lea ecx, [esp + 0x44]
call fcn.00415a20
push 0
lea eax, [esp + 0x3c]
push 0
lea ecx, [esp + 0xb4]
push eax
push ecx
mov byte [esp + 0xd4], 8
call fcn.0040f880
add esp, 0x10
lea edx, [esp + 0x60]
mov byte [esp + 0xc4], 9
cmp eax, edx
je 0x40cfad
mov ecx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0x16]
push edx
push ecx
push eax
lea ecx, [esp + 0x6c]
call fcn.00407ea0
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0xac]
sub ecx, eax
mov byte [esp + 0xc4], 0xa
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0xbc]
call fcn.0040e7d0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
sub edx, eax
lea ecx, [esp + 0x40]
push edx
push eax
mov byte [esp + 0xcc], 0xb
call fcn.0040e7d0
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0xd0]
mov byte [esp + 0xc4], 5
mov eax, dword [ebp]
add ebp, 0x14
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov byte [esp + 0x78], 0
mov edx, dword [ebp]
mov dword [esp + 0x18], edx
mov eax, dword [edx]
cmp eax, edx
je 0x40d058
mov ecx, dword [esp + 0x6c]
mov edi, dword [eax + 0x24]
cmp ecx, edi
jne 0x40d052
mov esi, dword [eax + 0x10]
mov edi, dword [esp + 0x58]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40d042
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
je 0x40d112
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
cmp eax, edx
jne 0x40d025
mov eax, dword [esp + 0xcc]
lea edx, [esp + 0x50]
push edx
push eax
mov ecx, esi
call fcn.0040b390
lea ecx, [esp + 0x50]
push ecx
push ecx
push esp
mov ecx, ebp
call fcn.0040e170
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.0040e290
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 8]
push ecx
call dword [eax + 0x36]
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x60]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
sub ecx, eax
mov byte [esp + 0xc4], 0xd
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x70]
call fcn.0040e7d0
mov edx, dword [esp + 0x5c]
push edx
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x5c]
push eax
call sub.MFC42u.DLL_operatordelete
push ebx
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x3c]
push ecx
call sub.MFC42u.DLL_operatordelete
mov edx, dword [esp + 0x3c]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 0x14
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret 8
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [edx + 8]
call dword [eax + 0x36]
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x60]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xc4], 0xc
call fcn.0040a000
mov ecx, dword [esp + 0x5c]
push ecx
call sub.MFC42u.DLL_operatordelete
mov edx, dword [esp + 0x5c]
push edx
call sub.MFC42u.DLL_operatordelete
push ebx
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x3c]
push eax
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x3c]
push ecx
jmp 0x40d0ef