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

Disassembly:
push 0xffffffffffffffff
push 0x417b3a
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 + 0x50]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebp
call fcn.00407820
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c4], ebp
call fcn.00407820
lea ecx, [esp + 0x68]
mov byte [esp + 0x1c4], 1
call fcn.00407820
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1c4], 2
call fcn.00407820
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 + 0x88]
mov dword [esp + 0x8a], eax
push ecx
mov dword [esp + 0x92], eax
mov byte [esp + 0x1c8], 4
mov dword [esp + 0x96], eax
mov word [esp + 0x8c], bp
mov word [esp + 0x9a], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebx]
mov esi, dword [eax]
cmp esi, eax
je 0x40d365
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.0040e330
cmp esi, dword [ebx]
jne 0x40d34a
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 0x40d820
jmp 0x40d388
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1cc]
mov ecx, dword [eax + 8]
cmp ecx, edx
jne 0x40d80c
mov ecx, dword [eax + 0x1c]
mov edi, dword [ecx]
cmp edi, ecx
mov dword [esp + 0x20], edi
je 0x40d80c
jmp 0x40d3b1
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 + 0x38], eax
mov dword [esp + 0x3c], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x28]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x40]
mov edx, dword [edx + 0x2c]
mov word [esp + 0x40], ax
mov dword [esp + 0x42], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x46], eax
lea edx, [esp + 0x38]
mov dword [esp + 0x4a], eax
push ecx
push edx
mov word [esp + 0x56], ax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x88]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, ebx
call fcn.0040e030
test al, al
je 0x40d462
mov eax, dword [esp + 0xa6]
and eax, 0xffff
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0xa4]
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 + 0xaa]
and ecx, 0xffff
add esi, ecx
jmp 0x40d465
or esi, 0xffffffff
cmp esi, dword [esp + 0x1d0]
jle 0x40d47a
push ebp
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x40d7f9
mov edx, dword [esp + 0x46]
mov eax, dword [esp + 0x42]
mov ecx, dword [esp + 0x40]
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 + 0x78], 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 + 0x38]
mov esi, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 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 + 0x34]
mov byte [esp + 0x1d], dl
call fcn.0040eb70
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x1f]
mov byte [esp + 0x1c4], 7
push edx
push eax
push ecx
lea ecx, [esp + 0x74]
call fcn.00407e90
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
sub edx, eax
lea ecx, [esp + 0x30]
sar edx, 1
push edx
push eax
mov byte [esp + 0x1cc], 8
call fcn.0040e330
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 + 0x7c]
mov dword [esp + 0x74], eax
lea eax, [edi + 0x18]
cmp eax, ecx
je 0x40d5ca
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [esp + 0x7c]
cmp eax, edx
je 0x40d5a0
cmp ecx, dword [esp + 0x80]
je 0x40d59c
mov si, word [eax]
add eax, 2
mov word [ecx], si
add ecx, 2
cmp eax, edx
jne 0x40d581
jmp 0x40d5a0
cmp eax, edx
jne 0x40d5b7
mov edx, dword [esp + 0x80]
push edx
push ecx
lea ecx, [esp + 0x84]
call fcn.00407730
jmp 0x40d5ca
lea ecx, [esp + 0x12]
push ecx
push edx
push eax
lea ecx, [esp + 0x88]
call fcn.0040eaf0
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 0x40d60e
mov ecx, ebx
add ecx, 2
inc eax
cmp word [ecx], 0
jne 0x40d604
lea eax, [ebx + eax*2]
lea ecx, [esp + 0x50]
push eax
push ebx
call fcn.00403f90
xor eax, eax
cmp word [0x42392c], ax
je 0x40d636
mov ecx, 0x42392c
add ecx, 2
inc eax
cmp word [ecx], 0
jne 0x40d62c
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 + 0x5c]
call fcn.004020c0
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 0x40d69f
mov ecx, esi
add ecx, 2
inc eax
cmp word [ecx], 0
jne 0x40d695
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 + 0x5c]
call fcn.004020c0
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 0x40d707
xor edx, edx
test eax, eax
jbe 0x40d707
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 0x40d6ec
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [esp + 0xc0]
push 1
mov eax, dword [edx + 4]
push ecx
lea ecx, [esp + 0xa4]
push eax
push ecx
call fcn.004144e0
add esp, 0x14
lea edx, [esp + 0x5c]
mov byte [esp + 0x1c4], 9
cmp eax, edx
je 0x40d784
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [esp + 0x5c]
cmp eax, edx
je 0x40d763
cmp ecx, dword [esp + 0x60]
je 0x40d75f
mov si, word [eax]
add eax, 2
mov word [ecx], si
add ecx, 2
cmp eax, edx
jne 0x40d747
jmp 0x40d763
cmp eax, edx
jne 0x40d774
mov eax, dword [esp + 0x60]
push eax
push ecx
lea ecx, [esp + 0x64]
call fcn.00407730
jmp 0x40d784
lea ecx, [esp + 0x1e]
push ecx
push edx
push eax
lea ecx, [esp + 0x68]
call fcn.0040eaf0
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x98]
sub edx, eax
lea ecx, [esp + 0xa0]
sar edx, 1
push edx
push eax
mov byte [esp + 0x1cc], 0xa
call fcn.0040e330
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x50]
lea ecx, [esp + 0xb8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x1cc], 4
call fcn.0040e350
push ecx
mov ecx, esp
push eax
call fcn.0040e390
lea edx, [esp + 0xbc]
mov ecx, esi
push edx
call fcn.0040e360
push ebp
mov dword [esp + 0x28], 1
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov edi, dword [esp + 0x20]
mov ebx, esi
mov eax, dword [esp + 0x18]
mov edi, dword [edi]
mov dword [esp + 0x20], edi
cmp edi, dword [eax + 0x1c]
jne 0x40d3ad
mov eax, dword [eax]
mov ecx, dword [ebx + 0x23c]
cmp eax, ecx
mov dword [esp + 0x18], eax
jne 0x40d384
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1c4], 0xd
call fcn.00403350
lea ecx, [esp + 0x68]
mov byte [esp + 0x1c4], 0xc
call fcn.00403350
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1c4], 0xb
call fcn.00403350
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c4], 0xffffffff
call fcn.00403350
mov ecx, dword [esp + 0x1bc]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1b8
ret 8