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

Disassembly:
push 0xffffffffffffffff
push 0x417aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push ebx
push ebp
mov ebx, ecx
push esi
xor ebp, ebp
push edi
lea ecx, [esp + 0x54]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
call fcn.00407840
lea ecx, [esp + 0x60]
mov dword [esp + 0x1c4], ebp
call fcn.00407840
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1c4], 1
call fcn.00407840
lea ecx, [esp + 0x80]
mov byte [esp + 0x1c4], 2
call fcn.00407840
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xbd]
mov byte [esp + 0xbc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c4], 3
stosb byte es:[edi], al
call sub.MFC42u.DLL_CString::CString_2
xor eax, eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8e], eax
push ecx
mov dword [esp + 0x96], eax
mov byte [esp + 0x1c8], 4
mov dword [esp + 0x9a], eax
mov word [esp + 0x90], bp
mov word [esp + 0x9e], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebx]
mov esi, dword [eax]
cmp esi, eax
je 0x40d388
mov edi, esi
mov esi, dword [esi]
push ebp
lea ecx, [edi + 8]
call fcn.0040eb50
push 1
push edi
mov ecx, ebx
call fcn.0040e7d0
cmp esi, dword [ebx]
jne 0x40d36d
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov ecx, dword [ebx + 0x23c]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x18], eax
je 0x40d83c
jmp 0x40d3ab
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1cc]
mov ecx, dword [eax + 8]
cmp ecx, edx
jne 0x40d828
mov ecx, dword [eax + 0x1c]
mov edi, dword [ecx]
cmp edi, ecx
mov dword [esp + 0x20], edi
je 0x40d828
jmp 0x40d3d4
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x10]
push ecx
push eax
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov ebp, eax
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x28]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x3c]
mov edx, dword [edx + 0x2c]
mov word [esp + 0x3c], ax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x42], eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x46], eax
push ecx
push edx
mov word [esp + 0x52], ax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x8c]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
mov ecx, ebx
call fcn.0040e060
test al, al
je 0x40d485
mov eax, dword [esp + 0xaa]
and eax, 0xffff
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0xa8]
and eax, 0xffff
lea edx, [eax + eax*8]
lea eax, [eax + edx*8]
lea eax, [eax + eax*4]
lea esi, [eax + ecx*2]
mov ecx, dword [esp + 0xae]
and ecx, 0xffff
add esi, ecx
jmp 0x40d488
or esi, 0xffffffff
cmp esi, dword [esp + 0x1d0]
jle 0x40d49d
push ebp
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x40d813
mov edx, dword [esp + 0x42]
mov eax, dword [esp + 0x3e]
mov ecx, dword [esp + 0x3c]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x20]
push str._04d__02d__02d
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
mov dword [esp + 0x7c], esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c4], 5
mov eax, dword [eax - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
xor ebx, ebx
lea ecx, [esp + 0x13]
push ebx
push ecx
lea ecx, [esp + 0x40]
mov esi, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00401e80
push esi
mov byte [esp + 0x1c8], 6
call fcn.00401e60
mov dl, byte [esp + 0x17]
add esp, 4
lea ecx, [esp + 0x11]
lea eax, [esi + eax*2]
push ecx
push eax
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1d], dl
call fcn.0040eb70
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x27]
mov byte [esp + 0x1c4], 7
push edx
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.00407ea0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
sub edx, eax
lea ecx, [esp + 0x38]
sar edx, 1
push edx
push eax
mov byte [esp + 0x1cc], 8
call fcn.0040e7d0
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c8], 4
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov eax, dword [edi + 0x2c]
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], eax
lea eax, [edi + 0x18]
cmp eax, ecx
je 0x40d5f3
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [esp + 0x80]
cmp eax, edx
je 0x40d5c9
cmp ecx, dword [esp + 0x84]
je 0x40d5c5
mov si, word [eax]
add eax, 2
mov word [ecx], si
add ecx, 2
cmp eax, edx
jne 0x40d5aa
jmp 0x40d5c9
cmp eax, edx
jne 0x40d5e0
mov edx, dword [esp + 0x84]
push edx
push ecx
lea ecx, [esp + 0x88]
call fcn.00407750
jmp 0x40d5f3
lea ecx, [esp + 0x12]
push ecx
push edx
push eax
lea ecx, [esp + 0x8c]
call fcn.0040eae0
mov edi, dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
push ebx
push ebx
push ebx
push ebx
push 4
push ebp
call edi
mov esi, eax
lea edx, [esi + esi + 2]
push edx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov ebx, eax
push esi
push ebx
push 0
push 0
push 4
push ebp
mov dword [ebx], 0
call edi
xor eax, eax
cmp word [ebx], ax
je 0x40d637
mov ecx, ebx
add ecx, 2
inc eax
cmp word [ecx], 0
jne 0x40d62d
lea eax, [ebx + eax*2]
lea ecx, [esp + 0x54]
push eax
push ebx
call fcn.00403fa0
xor eax, eax
cmp word [0x42392c], ax
je 0x40d65f
mov ecx, 0x42392c
add ecx, 2
inc eax
cmp word [ecx], 0
jne 0x40d655
mov cl, byte [esp + 0x12]
lea edx, [esp + 0x11]
lea eax, [eax*2 + 0x42392c]
push edx
mov byte [esp + 0x15], cl
push eax
push 0x42392c
lea ecx, [esp + 0x60]
call fcn.004020f0
push 0
push 0
push 0
push 1
push 4
push ebp
call edi
mov edi, eax
lea ecx, [edi + edi + 2]
push ecx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov esi, eax
push edi
push esi
push 0
push 1
push 4
push ebp
mov dword [esi], 0
call dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
xor eax, eax
cmp word [esi], ax
je 0x40d6c8
mov ecx, esi
add ecx, 2
inc eax
cmp word [ecx], 0
jne 0x40d6be
mov dl, byte [esp + 0x12]
lea ecx, [esp + 0x11]
mov byte [esp + 0x11], dl
lea edx, [esi + eax*2]
push ecx
push edx
push esi
lea ecx, [esp + 0x60]
call fcn.004020f0
push esi
call sub.MFC42u.DLL_operatordelete
push ebx
call sub.MFC42u.DLL_operatordelete
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xc4]
add esp, 8
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
cmp eax, 0x100
ja 0x40d730
xor edx, edx
test eax, eax
jbe 0x40d730
mov ecx, dword [ecx + 8]
sub ecx, edx
inc edx
mov al, byte [ecx + eax - 1]
mov byte [esp + edx + 0xbb], al
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
cmp edx, eax
jb 0x40d715
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [esp + 0xc0]
push 1
mov eax, dword [edx + 4]
push ecx
lea ecx, [esp + 0xa8]
push eax
push ecx
call fcn.00414390
add esp, 0x14
lea edx, [esp + 0x60]
mov byte [esp + 0x1c4], 9
cmp eax, edx
je 0x40d7ad
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [esp + 0x60]
cmp eax, edx
je 0x40d78c
cmp ecx, dword [esp + 0x64]
je 0x40d788
mov si, word [eax]
add eax, 2
mov word [ecx], si
add ecx, 2
cmp eax, edx
jne 0x40d770
jmp 0x40d78c
cmp eax, edx
jne 0x40d79d
mov eax, dword [esp + 0x64]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.00407750
jmp 0x40d7ad
lea ecx, [esp + 0x1f]
push ecx
push edx
push eax
lea ecx, [esp + 0x6c]
call fcn.0040eae0
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x9c]
sub edx, eax
lea ecx, [esp + 0xa4]
sar edx, 1
push edx
push eax
mov byte [esp + 0x1cc], 0xa
call fcn.0040e7d0
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x54]
push eax
push ecx
push esp
mov ecx, esi
mov byte [esp + 0x1d0], 4
call fcn.0040e170
lea ecx, [esp + 0xc0]
push ecx
mov ecx, esi
call fcn.0040e370
push ebp
mov dword [esp + 0x30], 1
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov edi, dword [esp + 0x20]
mov ebx, esi
mov edx, dword [esp + 0x18]
mov edi, dword [edi]
mov dword [esp + 0x20], edi
cmp edi, dword [edx + 0x1c]
jne 0x40d3d0
mov eax, edx
mov eax, dword [eax]
mov ecx, dword [ebx + 0x23c]
cmp eax, ecx
mov dword [esp + 0x18], eax
jne 0x40d3a7
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c4], 3
call sub.MFC42u.DLL_CString::CString
mov ebx, 0xb
mov dword [esp + 0x1c4], ebx
lea eax, [esp + 0x80]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x1c4], 0xe
call fcn.0040a000
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1c4], 0xc
call fcn.0040a000
lea ecx, [esp + 0x60]
mov byte [esp + 0x1c4], bl
call fcn.0040a000
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c4], 0xffffffff
call fcn.0040a000
mov ecx, dword [esp + 0x1bc]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b8
ret 8