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

Disassembly:
mov eax, 0x94
call fcn.004b9bb0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa8]
mov ebx, 7
test byte [edi + 0x104], 8
jne 0x40b6bb
mov eax, dword [edi + 0xe4]
mov dword [esp + 0x10], 0
mov ecx, dword [eax + 0x94]
test ecx, ecx
je 0x40b6c3
mov dword [esp + 0x10], 1
mov esi, dword [edi + 0x3c]
push 0xa
push esi
call fcn.004293b0
add esp, 8
test eax, eax
jne 0x40b6e6
push 0x16e
push str.._ssl_s3_both.c
push 7
jmp 0x40b787
mov ebp, dword [esp + 0xac]
test ebp, ebp
je 0x40b88f
mov eax, dword [esp + 0x10]
push 0
test eax, eax
push ebp
je 0x40b760
call fcn.00421200
mov ebx, eax
lea edi, [ebx + 0xa]
push edi
push esi
call fcn.004293b0
add esp, 0x10
test eax, eax
je 0x40b95a
mov eax, dword [esi + 4]
mov ecx, ebx
add eax, 7
mov edx, ebx
sar ecx, 0x10
mov dword [esp + 0x10], eax
mov byte [eax], cl
mov eax, dword [esp + 0x10]
sar edx, 8
mov byte [eax + 1], dl
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x10]
mov byte [ecx + 2], bl
mov eax, dword [esp + 0x10]
add eax, 3
push edx
push ebp
mov dword [esp + 0x18], eax
call fcn.00421200
add esp, 8
mov ebx, edi
jmp 0x40b88f
mov eax, dword [edi + 0xe4]
lea edx, [esp + 0x24]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call fcn.0042ac80
add esp, 0x10
test eax, eax
jne 0x40b7a3
push 0x17e
push str.._ssl_s3_both.c
push 0xb
push 0x93
push 0x14
call fcn.00424260
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
lea eax, [esp + 0x1c]
push eax
call fcn.00429ea0
call fcn.00424360
mov ecx, dword [esp + 0x74]
xor edi, edi
push ecx
call fcn.00425190
add esp, 8
test eax, eax
jle 0x40b882
mov edx, dword [esp + 0x70]
push edi
push edx
call fcn.004251a0
mov ebp, eax
push 0
push ebp
call fcn.00421200
mov dword [esp + 0x24], eax
lea eax, [eax + ebx + 3]
push eax
push esi
mov dword [esp + 0x30], eax
call fcn.004293b0
add esp, 0x18
test eax, eax
je 0x40b850
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
mov edx, ecx
add eax, ebx
sar edx, 0x10
mov dword [esp + 0x10], eax
mov byte [eax], dl
mov edx, dword [esp + 0x10]
mov eax, ecx
sar eax, 8
mov byte [edx + 1], al
mov eax, dword [esp + 0x10]
mov byte [eax + 2], cl
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
add eax, 3
push ecx
push ebp
mov dword [esp + 0x18], eax
call fcn.00421200
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x20]
push edx
inc edi
call fcn.00425190
add esp, 0xc
cmp edi, eax
jge 0x40b882
jmp 0x40b7c9
push 0x152
push str.._ssl_s3_both.c
push 7
push pe_nt_image_headers32
push 0x14
call fcn.00424260
lea eax, [esp + 0x30]
push eax
call fcn.0042be20
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
lea ecx, [esp + 0x1c]
push ecx
call fcn.0042be20
add esp, 4
mov edx, dword [esp + 0xa8]
xor edi, edi
mov eax, dword [edx + 0xe4]
mov ecx, dword [eax + 0x94]
push ecx
call fcn.00425190
add esp, 4
test eax, eax
jle 0x40b982
mov edx, dword [esp + 0xa8]
push edi
mov eax, dword [edx + 0xe4]
mov ecx, dword [eax + 0x94]
push ecx
call fcn.004251a0
mov ebp, eax
push 0
push ebp
call fcn.00421200
mov dword [esp + 0x28], eax
lea eax, [eax + ebx + 3]
push eax
push esi
mov dword [esp + 0x2c], eax
call fcn.004293b0
add esp, 0x18
test eax, eax
je 0x40b95a
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 4]
mov edx, ecx
add eax, ebx
sar edx, 0x10
mov dword [esp + 0x10], eax
mov byte [eax], dl
mov edx, dword [esp + 0x10]
mov eax, ecx
sar eax, 8
mov byte [edx + 1], al
mov eax, dword [esp + 0x10]
mov byte [eax + 2], cl
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
add eax, 3
push ecx
push ebp
mov dword [esp + 0x18], eax
call fcn.00421200
mov edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0x1c]
inc edi
mov eax, dword [edx + 0xe4]
mov ecx, dword [eax + 0x94]
push ecx
call fcn.00425190
add esp, 0xc
cmp edi, eax
jge 0x40b982
jmp 0x40b8b5
push 0x152
push str.._ssl_s3_both.c
push 7
push pe_nt_image_headers32
push 0x14
call fcn.00424260
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov eax, dword [esi + 4]
sub ebx, 7
mov edx, ebx
mov ecx, ebx
add eax, 4
pop edi
shr edx, 0x10
shr ecx, 8
mov byte [eax], dl
mov byte [eax + 1], cl
mov byte [eax + 2], bl
mov esi, dword [esi + 4]
add ebx, 3
mov edx, ebx
mov byte [esi], 0xb
mov eax, ebx
inc esi
shr edx, 0x10
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov byte [esi + 2], bl
pop esi
lea eax, [ebx + 4]
pop ebp
pop ebx
add esp, 0x94
ret