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

Disassembly:
sub esp, 0x4fc
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x4f8], eax
mov eax, dword [esp + 0x500]
mov edx, dword [ebx + 0xd0]
mov eax, dword [eax]
push ebp
push esi
push edi
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0xc]
push ecx
xor ebp, ebp
push ebp
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [edx + 0x32]
push 6
push eax
call ecx
add esp, 0x14
test eax, eax
jne 0x4040ec
mov ecx, dword [ebx + 0xd0]
lea edx, [esp + 0x6c]
mov dword [esp + 0x78], edx
lea eax, [esp + 0x13]
mov edi, 1
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xc]
push 2
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x74], edi
mov byte [esp + 0x1b], 1
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x84], 4
mov dword [esp + 0x88], edi
mov dword [esp + 0x90], edi
mov ecx, dword [ecx + 0x6a]
push eax
call ecx
mov edx, dword [ebx + 0xd0]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x34], ebp
mov ecx, dword [edx + 0x6e]
push eax
call ecx
add esp, 0x1c
test eax, eax
jne 0x4042d7
cmp dword [esp + 0x1c], ebp
je 0x4042d7
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0xd0]
push 6
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0x80
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], 0x101
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], 0x102
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], 0x11
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov ecx, dword [edx + 0x62]
push eax
call ecx
add esp, 0x10
test eax, eax
jne 0x4042d7
mov edx, dword [esp + 0x28]
push edx
call fcn.00418119
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push eax
call fcn.00418119
mov ecx, dword [esp + 0x48]
inc ecx
push ecx
mov dword [esp + 0x3c], eax
call fcn.00418119
mov edx, dword [esp + 0x58]
inc edx
push edx
mov dword [esp + 0x4c], eax
call fcn.00418119
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x68]
inc eax
push eax
call fcn.00418119
mov ecx, dword [esp + 0x78]
push ecx
mov dword [esp + 0x6c], eax
call fcn.00418119
mov edx, dword [esp + 0x40]
push edx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x40]
push ebp
push eax
call fcn.0043aba0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
push ebp
push edx
call fcn.0043aba0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
inc eax
push eax
push ebp
push ecx
call fcn.0043aba0
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
inc edx
push edx
push ebp
push eax
call fcn.0043aba0
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x9c]
add esp, 0x48
inc ecx
push ecx
push ebp
push edx
call fcn.0043aba0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
push eax
push ebp
push ecx
call fcn.0043aba0
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0xd0]
push 6
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [edx + 0x62]
push eax
call ecx
add esp, 0x28
test eax, eax
je 0x404087
lea esi, [esp + 0x24]
lea ebp, [edi + 5]
lea esp, [esp]
mov edx, dword [esi]
push edx
call fcn.00418124
add esp, 4
add esi, 0xc
sub ebp, edi
jne 0x404070
jmp 0x4042d7
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push eax
push ecx
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov edi, eax
lea esi, [esp + 0x24]
mov dword [esp + 0x14], 6
lea ebx, [ebx]
mov edx, dword [esi]
push edx
call fcn.00418124
add esp, 4
add esi, 0xc
sub dword [esp + 0x14], 1
jne 0x4040b0
cmp edi, ebp
jne 0x4040f4
mov eax, dword [ebx + 0xd0]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + 0x72]
push ecx
call edx
mov eax, dword [ebx + 0xd0]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x36]
push ecx
call edx
add esp, 8
or eax, 0xffffffff
jmp 0x4042fc
push 0x440
lea eax, [esp + 0xc4]
push ebp
push eax
call fcn.0043aba0
mov edx, dword [edi + 0xc]
add esp, 0xc
push 0x100
lea ecx, [esp + 0x1c4]
push ecx
push 3
add edx, 0x30
push edx
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertNameToStrA]
mov eax, dword [edi + 0xc]
mov esi, dword [eax + 4]
sub esi, 1
lea ebp, [esp + 0x2c0]
js 0x404161
lea ecx, [ecx]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx + 8]
movzx eax, byte [edx + esi]
push eax
push str._02X
push ebp
call fcn.0043724a
add esp, 0xc
add ebp, 2
sub esi, 1
jns 0x404140
mov edx, dword [edi + 0xc]
push 0x100
lea ecx, [esp + 0xc4]
push ecx
push 3
add edx, 0x18
push edx
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertNameToStrA]
lea eax, [esp + 0xc0]
push 0x49511c
push eax
call fcn.00437310
add esp, 8
test eax, eax
jne 0x4041c0
lea ecx, [esp + 0xc0]
push 0x495120
push ecx
call fcn.00437310
add esp, 8
test eax, eax
jne 0x4041bb
mov eax, str.get_issuer_error
jmp 0x4041c3
add eax, 3
jmp 0x4041c3
add eax, 2
lea edx, [esp + 0xc0]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4041d0
mov eax, dword [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [esp + 0x90]
push edx
add eax, 0x20
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x94]
push edx
call ebp
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0xa8]
push eax
add ecx, 0x28
push ecx
call esi
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0xac]
push eax
call ebp
movzx ecx, word [esp + 0x9e]
movzx edx, word [esp + 0x9a]
movzx eax, word [esp + 0x98]
push ecx
push edx
push eax
lea ecx, [esp + 0x30c]
push str._d__02d__02d
push ecx
call fcn.0043724a
movzx edx, word [esp + 0xca]
movzx eax, word [esp + 0xc6]
movzx ecx, word [esp + 0xc4]
push edx
push eax
push ecx
lea edx, [esp + 0x420]
push str._d__02d__02d
push edx
call fcn.0043724a
mov esi, dword [esp + 0x98]
add esp, 0x28
lea eax, [esp + 0xc0]
push eax
lea ecx, [esi + 0xc]
call fcn.004024e0
lea ecx, [esp + 0x2c0]
push ecx
lea ecx, [esi + 0x10]
call fcn.004024e0
lea edx, [esp + 0x400]
push edx
lea ecx, [esi + 0x14]
call fcn.004024e0
lea eax, [esp + 0x300]
push eax
lea ecx, [esi + 0x18]
call fcn.004024e0
push edi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 0xd0]
mov eax, dword [ecx + 0x72]
push edx
call eax
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0xd0]
mov eax, dword [ecx + 0x36]
push edx
call eax
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x504]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043671a
add esp, 0x4fc
ret 4