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

Disassembly:
sub esp, 0x124
mov eax, dword [0x56e188]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x128]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
push esi
mov dword [esp + 0x18], eax
mov esi, 0x8e78
mov edx, 0x8e59
mov eax, 0x11d0
mov word [esp + 0x80], si
mov esi, 0x11d0
mov dword [esp + 0x1c], ecx
mov word [esp + 0x70], dx
mov word [esp + 0x72], ax
mov bl, 0x4f
mov dl, 0xc2
mov cl, 0x95
mov al, 0xee
push edi
mov word [esp + 0x86], si
mov dword [esp + 0x70], 0xde351a42
mov byte [esp + 0x78], 0x8c
mov byte [esp + 0x79], 0x47
mov byte [esp + 0x7a], 0
mov byte [esp + 0x7b], 0xc0
mov byte [esp + 0x7c], bl
mov byte [esp + 0x7d], dl
mov byte [esp + 0x7e], cl
mov byte [esp + 0x7f], al
mov dword [esp + 0x80], 0xc689aab8
mov byte [esp + 0x88], 0x8c
mov byte [esp + 0x89], 0x47
mov byte [esp + 0x8a], 0
mov byte [esp + 0x8b], 0xc0
mov byte [esp + 0x8c], bl
mov byte [esp + 0x8d], dl
mov byte [esp + 0x8e], cl
mov byte [esp + 0x8f], al
mov byte [esp + 0x17], 0xa0
xor esi, esi
lea edi, [esp + 0xd0]
movzx ecx, byte [esi + ebp]
push ecx
push str._02X
push 3
push edi
call fcn.004fe1d0
inc esi
add esp, 0x10
add edi, 4
cmp esi, 0x14
jl 0x406e65
mov ebx, dword [esp + 0x20]
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406e90
sub eax, edx
sar eax, 1
lea esi, [ebx + eax*2 - 6]
push 0x54f5f4
push esi
call fcn.004fd499
add esp, 8
test eax, eax
je 0x406eef
push 0x54f5fc
push esi
call fcn.004fd499
add esp, 8
test eax, eax
je 0x406eef
push 0x54f604
push esi
call fcn.004fd499
add esp, 8
test eax, eax
je 0x406eef
push 0x54f60c
push esi
call fcn.004fd499
add esp, 8
test eax, eax
jne 0x406f51
xor esi, esi
jmp 0x406ef4
mov esi, 1
xor edi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 3
mov dword [esp + 0x58], str.___Obsolete___
mov dword [esp + 0x18], 0x40
lea eax, [esp + 0x54]
push ecx
cmp esi, edi
je 0x406f58
lea edx, [esp + 0x1b]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x94]
push edx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
push str.1.3.6.1.4.1.311.2.1.15
push 1
mov dword [esp + 0x38], 1
mov dword [esp + 0x40], edi
call dword [sym.imp.CRYPT32.dll_CryptEncodeObject]
test eax, eax
jne 0x406f77
xor eax, eax
jmp 0x407060
lea edx, [esp + 0x94]
push edx
push eax
push str.1.3.6.1.4.1.311.2.1.25
push 1
call dword [sym.imp.CRYPT32.dll_CryptEncodeObject]
test eax, eax
jne 0x406f81
jmp 0x407060
mov dword [esp + 0x34], str.1.3.6.1.4.1.311.2.1.15
jmp 0x406f89
mov dword [esp + 0x34], str.1.3.6.1.4.1.311.2.1.25
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x90]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], str.1.3.14.3.2.26
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], 0x14
mov dword [esp + 0x50], ebp
lea eax, [esp + 0x80]
cmp esi, edi
jne 0x406fc3
lea eax, [esp + 0x70]
lea ecx, [esp + 0x34]
push ecx
push 0x20
push 0x200
push eax
lea edx, [esp + 0xe0]
push edx
push edi
mov edi, dword [esp + 0x34]
push edi
call sub.WINTRUST.dll_CryptCATPutMemberInfo
mov esi, eax
test esi, esi
je 0x406f51
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406ff2
sub eax, edx
push ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push 0x10010001
push str.File
push esi
push edi
call sub.WINTRUST.dll_CryptCATPutAttrInfo
test eax, eax
je 0x406f51
mov eax, str.2:5.1_2:5.2_2:6.0_2:6.1
lea edx, [eax + 2]
jmp 0x407030
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407030
sub eax, edx
push str.2:5.1_2:5.2_2:6.0_2:6.1
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push 0x10010001
push str.OSAttr
push esi
push edi
call sub.WINTRUST.dll_CryptCATPutAttrInfo
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fd1b4
add esp, 0x124
ret