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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x80]
mov dword [esp + 0x4c], 0
mov dword [eax], 0
mov eax, dword [esp + 0x74]
mov dword [eax], 0
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.0043c080
lea edx, [eax + 1]
mov ecx, eax
mov dword [esp + 0x1c], eax
xor eax, eax
test esi, 0x100
mov ebx, eax
mov edi, eax
cmove ebx, edx
test esi, 0x200
cmove edi, edx
and esi, 0x400
cmove eax, edx
cmp ecx, 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], eax
je 0x495f5e
mov eax, ecx
sub eax, 2
mov dword [esp + 0x20], eax
js 0x495f6b
mov edi, eax
mov ebp, 1
jmp 0x495e44
cmp ebp, 1
je 0x495e89
test ebx, ebx
jle 0x495e38
mov eax, dword [eax + 0xc]
and ecx, 0x20
cmp ecx, 1
sbb ebx, 0
cmp eax, 0xffffffff
je 0x495e38
cmp ebx, eax
cmovg ebx, eax
sub edi, 1
cmp edi, 0xffffffff
je 0x495ed0
mov eax, dword [esp + 0x78]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0043c0a0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov esi, eax
mov dword [esp], eax
call fcn.004758d0
mov dword [esp], esi
call fcn.00476110
test eax, eax
je 0x495ec6
mov ecx, dword [esi + 0x28]
test ch, 8
je 0x495e19
mov ebp, 0xffffffff
jmp 0x495e1e
mov edx, dword [eax + 4]
test edx, edx
mov edx, 2
cmove ebp, edx
jmp 0x495e1e
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov edx, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
call fcn.00495be0
test eax, eax
jne 0x496328
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00495cd0
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebp, 1
je 0x495f6b
test ebx, ebx
jne 0x495ef9
cmp ebp, 2
jne 0x495ef9
mov eax, dword [esp + 0x74]
mov dword [eax], 1
add esp, 0x5c
mov eax, 0xfffffffe
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebp, 1
je 0x495f5e
cmp ebp, 2
mov eax, 1
je 0x495ec8
test ebp, ebp
je 0x495ec6
add esp, 0x5c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
or dword [eax + 0x14], 2
cmp ebp, 2
jne 0x495f32
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.0043bf60
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov eax, dword [esp + 0x74]
mov ebx, dword [eax]
test ebx, ebx
je 0x495f5e
mov dword [esp], ecx
call fcn.004aa4b0
mov dword [esp], eax
call fcn.0043c080
test eax, eax
jle 0x4965d6
add esp, 0x5c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xde
mov dword [esp + 4], str.external_openssl_crypto_x509v3_pcy_tree.c
mov dword [esp], 0x18
call fcn.00427550
test eax, eax
mov edi, eax
mov dword [esp + 0x30], eax
je 0x495ec6
mov esi, dword [esp + 0x1c]
mov dword [eax + 0x14], 0
mov dword [esp + 8], 0xe4
mov dword [esp + 4], str.external_openssl_crypto_x509v3_pcy_tree.c
shl esi, 4
mov dword [esp], esi
call fcn.00427550
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
test eax, eax
mov dword [edi], eax
je 0x496791
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov esi, dword [edi]
mov dword [edi + 4], ecx
mov dword [esp], 0x2ea
call fcn.00439610
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00493180
test eax, eax
je 0x495eba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004aa2a0
test eax, eax
je 0x495eba
mov eax, dword [esp + 0x20]
test eax, eax
js 0x49615f
mov dword [esp + 0x1c], ebx
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
jmp 0x496099
test byte [edi + 0x28], 0x20
je 0x496146
test ecx, ecx
je 0x496146
test ebp, ebp
jne 0x496125
or dword [esi + 0xc], 0x400
sub ecx, 1
cmp ecx, 0xffffffff
je 0x49615b
mov eax, dword [esp + 0x78]
add esi, 0x10
mov dword [esp + 4], ecx
mov dword [esp + 0x24], ecx
mov dword [esp], eax
call fcn.0043c0a0
mov dword [esp], eax
mov edi, eax
call fcn.00476110
mov dword [esp + 0x10], 0x102
mov dword [esp + 0xc], str.external_openssl_crypto_x509v3_pcy_tree.c
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp + 0x20], eax
lea eax, [edi + 0x10]
mov dword [esp], eax
call fcn.0042ac50
mov edx, dword [esp + 0x20]
mov dword [esi], edi
mov ecx, dword [esp + 0x24]
mov eax, dword [edx]
test eax, eax
je 0x496152
test ebx, ebx
je 0x49606c
mov eax, dword [edi + 0x28]
and eax, 0x20
cmp eax, 1
mov eax, dword [edx + 8]
sbb ebx, 0
test eax, eax
js 0x49607e
cmp ebx, eax
cmovg ebx, eax
test ebp, ebp
je 0x496086
mov eax, dword [edi + 0x28]
and eax, 0x20
cmp eax, 1
mov eax, dword [edx + 0x10]
sbb ebp, 0
test eax, eax
js 0x49608d
cmp ebp, eax
cmovg ebp, eax
jmp 0x49608d
or dword [esi + 0xc], 0x200
jmp 0x49607e
or dword [esi + 0xc], 0x200
jmp 0x4960f9
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x496770
mov eax, dword [esp + 0x74]
mov dword [eax], 1
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
mov ecx, eax
mov dword [esp + 0x3c], eax
add eax, 0x10
mov esi, eax
mov dword [esp + 0x34], eax
mov eax, dword [edx + 4]
cmp eax, 1
jle 0x496442
lea ebp, [ecx + 8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], 1
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00476110
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
mov eax, esi
sub eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.0043c080
cmp dword [esp + 0x28], eax
jge 0x4962ad
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.0043c0a0
mov dword [esp + 0x24], 0
mov esi, eax
jmp 0x496205
add ebx, 1
mov eax, dword [ebp - 4]
mov dword [esp], eax
call fcn.0043c080
cmp ebx, eax
jge 0x496270
mov dword [esp + 4], ebx
mov eax, dword [ebp - 4]
mov dword [esp], eax
call fcn.0043c0a0
mov edi, eax
mov eax, dword [esi + 4]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004aa3b0
test eax, eax
je 0x496202
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004aa2a0
test eax, eax
je 0x495eba
mov dword [esp + 0x24], 1
jmp 0x496202
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x4962a3
mov eax, dword [ebp]
test eax, eax
je 0x4962a3
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004aa2a0
test eax, eax
je 0x495eba
add dword [esp + 0x28], 1
jmp 0x4961c4
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
test ah, 2
jne 0x49636b
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0043c080
cmp dword [esp + 0x1c], eax
jge 0x49632f
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0043c0a0
mov ecx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x34]
test byte [eax + ecx - 0x13], 4
jne 0x49631d
mov eax, dword [esi]
test byte [eax], 1
jne 0x4964e8
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x495e98
add dword [esp + 0x1c], 1
jmp 0x4962d5
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp]
test eax, eax
je 0x496364
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004aa2a0
test eax, eax
je 0x495eba
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x20]
test ah, 4
mov ebx, dword [ecx + 4]
jne 0x49656a
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x1c], ebp
sub esi, 0x10
mov ebx, dword [esi + 4]
mov dword [esp], ebx
call fcn.0043c080
sub eax, 1
mov ebp, eax
jns 0x4963a8
jmp 0x4963de
sub ebp, 1
cmp ebp, 0xffffffff
je 0x4963de
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.0043c0a0
mov edx, dword [eax + 8]
test edx, edx
jne 0x4963a0
mov edx, dword [eax + 4]
sub dword [edx + 8], 1
mov dword [esp], eax
call fcn.00427840
mov dword [esp + 4], ebp
sub ebp, 1
mov dword [esp], ebx
call fcn.0043bd90
cmp ebp, 0xffffffff
jne 0x4963a8
mov eax, dword [esi + 8]
test eax, eax
je 0x496409
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x496409
mov edx, dword [eax + 4]
test edx, edx
je 0x4963fa
sub dword [edx + 8], 1
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.00427840
mov dword [esi + 8], 0
cmp esi, dword [edi]
jne 0x496387
mov edi, dword [esi + 8]
mov ebp, dword [esp + 0x1c]
test edi, edi
je 0x4965bc
mov eax, dword [esp + 0x30]
add ebp, 0x10
add dword [esp + 0x38], 1
add dword [esp + 0x20], 0x10
mov eax, dword [eax + 4]
cmp dword [esp + 0x38], eax
jl 0x4961a1
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x3c]
lea edx, [eax + 0xfffffff]
shl edx, 4
mov edx, dword [ecx + edx + 8]
test edx, edx
je 0x496781
mov esi, dword [esp + 0x30]
mov eax, esi
add eax, 0xc
call fcn.00495c70
test eax, eax
je 0x495eba
mov eax, dword [esi + 4]
lea ebp, [esp + 0x4c]
mov edi, dword [esi]
cmp eax, 1
jle 0x496600
mov esi, dword [edi + 8]
test esi, esi
je 0x496600
mov dword [esp + 0x1c], 1
add edi, 0x10
xor ebx, ebx
jmp 0x4964a3
add ebx, 1
mov eax, dword [edi + 4]
mov dword [esp], eax
call fcn.0043c080
cmp ebx, eax
jge 0x4965e3
mov dword [esp + 4], ebx
mov eax, dword [edi + 4]
mov dword [esp], eax
call fcn.0043c0a0
cmp esi, dword [eax + 4]
jne 0x4964a0
mov edx, eax
mov eax, ebp
call fcn.00495c70
test eax, eax
jne 0x4964a0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00495cd0
jmp 0x495ec6
mov edi, dword [eax + 0xc]
mov ebx, dword [esi + 8]
mov dword [esp], edi
call fcn.0043c080
cmp ebx, eax
je 0x496328
xor ebx, ebx
jmp 0x496505
add ebx, 1
mov dword [esp], edi
call fcn.0043c080
cmp ebx, eax
jge 0x496328
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0043c0a0
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004aa230
test eax, eax
jne 0x496502
mov eax, dword [esp + 0x30]
mov ecx, ebp
mov edx, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
call fcn.00495be0
test eax, eax
jne 0x496502
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00495cd0
jmp 0x495ec6
mov dword [esp], ebx
call fcn.0043c080
sub eax, 1
mov esi, eax
jns 0x49658c
jmp 0x49637b
sub esi, 1
cmp esi, 0xffffffff
je 0x49637b
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0043c0a0
mov edx, dword [eax]
test byte [edx], 3
je 0x496580
mov edx, dword [eax + 4]
sub dword [edx + 8], 1
mov dword [esp], eax
call fcn.00427840
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0043bd90
jmp 0x496580
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00495cd0
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
test eax, eax
je 0x495f5e
add esp, 0x5c
mov eax, 0xfffffffe
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
add dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 4]
jge 0x496600
mov esi, dword [edi + 8]
test esi, esi
jne 0x496496
lea eax, [esp + 0x4c]
cmp ebp, eax
je 0x4967a2
mov eax, dword [esp + 0x30]
mov ebp, 1
mov edi, dword [eax + 0xc]
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.0043c080
test eax, eax
jle 0x495f21
mov ecx, dword [esp + 0x30]
xor ebx, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], eax
add eax, 0xfffffff
shl eax, 4
add eax, dword [ecx]
mov esi, dword [eax + 8]
jmp 0x496672
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0043c0a0
mov dword [esp], eax
call fcn.00439940
cmp eax, 0x2ea
je 0x495f19
add ebx, 1
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.0043c080
cmp ebx, eax
jl 0x49664c
xor ebx, ebx
jmp 0x4966ac
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x49674f
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0043be60
test eax, eax
je 0x495eba
add ebx, 1
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.0043c080
cmp ebx, eax
jge 0x495f21
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0043c0a0
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 0x1c], eax
call fcn.004aa1e0
mov ecx, dword [esp + 0x1c]
test eax, eax
mov edx, eax
jne 0x496686
test esi, esi
je 0x4966a9
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], 0
and eax, 0x10
mov dword [esp + 8], eax
call fcn.00493180
test eax, eax
je 0x495eba
mov edx, dword [esi]
mov ecx, dword [esp + 0x30]
mov edx, dword [edx + 8]
mov dword [eax], 0xc
mov dword [eax + 8], edx
mov dword [esp + 0xc], ecx
mov edx, dword [esi + 4]
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [esp + 8], edx
call fcn.004aa2a0
mov edx, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x496695
mov dword [esp + 0x1c], edx
call fcn.0043bcc0
mov ecx, dword [esp + 0x30]
test eax, eax
mov dword [ecx + 0x10], eax
je 0x495f21
mov edx, dword [esp + 0x1c]
jmp 0x496695
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x496171
jmp 0x495f5e
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
lea ebp, [ecx + 0xc]
jmp 0x49647a
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00427840
jmp 0x495ec6
mov edi, dword [esp + 0x4c]
mov ebp, 2
jmp 0x49661c