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

Disassembly:
sub esp, 0x58
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
or eax, 0xffffffff
lea ecx, [edi + edi*8]
xor edx, edx
cmp dword [ebx + ecx*8 + 0x1a0], 3
lea esi, [ebx + ecx*8 + 0x17c]
mov ecx, dword [ebx + 0xb4]
setne dl
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 0x98]
push edx
push str.schannel:_SSL_TLS_connection_with__s_port__hu__step_2_3__n
push eax
call fcn.10059500
xor ebp, ebp
add esp, 0x10
cmp dword [esi + 0x38], ebp
jne 0x1005e2e6
push 0x1000
mov dword [esi + 0x30], ebp
mov dword [esi + 0x28], 0x1000
call dword [section..data]
add esp, 4
mov dword [esi + 0x38], eax
cmp eax, ebp
jne 0x1005e2e6
push str.schannel:_unable_to_allocate_memory
mov eax, dword [esp + 0x10]
push eax
call fcn.10059590
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebp
add esp, 0x58
ret
mov eax, dword [esi + 0x28]
mov ecx, eax
sub ecx, dword [esi + 0x30]
cmp ecx, 0x400
jae 0x1005e317
mov edx, dword [esi + 0x38]
add eax, eax
push eax
push edx
mov dword [esi + 0x28], eax
call dword [0x100d9008]
add esp, 8
mov dword [esi + 0x38], eax
cmp eax, ebp
jne 0x1005e317
push str.schannel:_unable_to_re_allocate_memory
jmp 0x1005e2cd
cmp dword [esp + 0x10], ebp
je 0x1005e361
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x28]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x38]
sub edx, eax
push edx
mov edx, dword [ebx + edi*4 + 0x154]
add ecx, eax
push ecx
push edx
call fcn.10059200
add esp, 0x10
cmp eax, 0x51
je 0x1005e55f
cmp eax, ebp
jne 0x1005e576
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x1005e576
add dword [esi + 0x30], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x30]
mov edx, dword [esp + 0xc]
push eax
push ecx
push str.schannel:_encrypted_data_buffer:_offset__zu_length__zu_n
push edx
call fcn.10059500
mov eax, dword [esi + 0x30]
push eax
call fcn.1004eb90
mov ecx, dword [esi + 0x30]
push ecx
mov edi, eax
call dword [section..data]
lea edx, [esp + 0x4c]
mov ecx, 2
mov dword [esp + 0x48], edx
add esp, 0x18
lea edx, [esp + 0x4c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], 0x11
mov dword [esp + 0x60], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
cmp eax, ebp
je 0x1005e2c8
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x38]
push ecx
push edx
push eax
call fcn.10088b90
mov ecx, dword [ebx + 0x98]
add esp, 0xc
cmp ecx, ebp
je 0x1005e2da
mov eax, dword [esi + 0xc]
lea edx, [eax + 8]
push edx
lea edx, [esi + 0x44]
push edx
lea edx, [esp + 0x24]
push edx
push ebp
push ebp
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esi + 0x40]
push ebp
push ebp
push edx
push ecx
mov ecx, dword [0x100dbf2c]
mov edx, dword [ecx + 0x18]
push eax
mov eax, dword [esi + 8]
push eax
call edx
mov edi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], edi
cmp eax, ebp
je 0x1005e45a
push eax
call dword [0x100d9004]
add esp, 4
mov dword [esp + 0x3c], ebp
cmp edi, 0x80090318
je 0x1005e594
cmp edi, 0x90312
je 0x1005e476
cmp edi, ebp
jne 0x1005e5a5
lea edi, [esp + 0x4c]
lea ebx, [ebx]
cmp dword [edi + 4], 2
jne 0x1005e4d1
mov eax, dword [edi]
test eax, eax
je 0x1005e4d1
push eax
mov eax, dword [esp + 0x10]
push str.schannel:_sending_next_handshake_data:_sending__lu_bytes..._n
push eax
call fcn.10059500
mov edx, dword [edi]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [ebx + ecx*4 + 0x154]
push eax
push edx
push ebx
call fcn.10059900
add esp, 0x20
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x1005e5f9
cmp dword [edi], eax
jne 0x1005e5f9
mov eax, dword [edi + 8]
test eax, eax
je 0x1005e4e3
push eax
mov eax, dword [0x100dbf2c]
mov ecx, dword [eax + 0x40]
call ecx
inc ebp
add edi, 0xc
cmp ebp, 2
jl 0x1005e480
cmp dword [esp + 0x44], 5
jne 0x1005e621
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1005e621
mov edx, dword [esp + 0xc]
push eax
push str.schannel:_encrypted_data_length:__lu_n
push edx
call fcn.10059500
mov eax, dword [esi + 0x30]
mov edx, dword [esp + 0x4c]
add esp, 0xc
cmp eax, edx
jbe 0x1005e628
mov ecx, dword [esi + 0x38]
sub eax, edx
push edx
add eax, ecx
push eax
push ecx
call fcn.100855d0
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x10], 0x90312
mov dword [esi + 0x30], eax
jne 0x1005e642
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], 0
xor ebp, ebp
jmp 0x1005e317
cmp dword [esi + 0x24], 3
je 0x1005e56c
mov dword [esi + 0x24], 2
push str.schannel:_failed_to_receive_handshake__need_more_data_n
jmp 0x1005e655
mov edx, dword [esp + 0xc]
push str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
push edx
call fcn.10059590
add esp, 8
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x58
ret
mov dword [esi + 0x24], 2
push str.schannel:_received_incomplete_message__need_more_data_n
jmp 0x1005e655
cmp edi, 0x80090322
jne 0x1005e5d3
push edi
push ebx
call fcn.1004d190
mov edx, dword [esp + 0x14]
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push edx
call fcn.10059590
add esp, 0x14
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x58
ret
push edi
push ebx
call fcn.1004d190
push eax
mov eax, dword [esp + 0x18]
push str.schannel:_next_InitializeSecurityContext_failed:__s
push eax
call fcn.10059590
add esp, 0x14
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x58
ret
lea ecx, [ebp + ebp*2]
mov edx, dword [esp + ecx*4 + 0x4c]
push edx
push eax
mov eax, dword [esp + 0x14]
push str.schannel:_failed_to_send_next_handshake_data:_sent__zd_of__lu_bytes
push eax
call fcn.10059590
add esp, 0x10
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x58
ret
mov dword [esi + 0x30], 0
cmp dword [esp + 0x10], 0x90312
jne 0x1005e642
pop edi
mov dword [esi + 0x24], 2
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret
cmp dword [esp + 0x10], 0
jne 0x1005e662
mov dword [esi + 0x24], 4
push str.schannel:_SSL_TLS_handshake_complete_n
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10059500
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret