Function at 0x4108e9
Capabilities:
Access peb ldr_data
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x18
mov ecx, dword fs:[0x30]
mov eax, dword [ecx + 0xc]
add eax, 0xc
mov edx, dword [eax]
cmp edx, eax
je 0x410bcf
mov eax, dword [edx + 0x30]
mov edx, dword [edx + 0x18]
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [sym.mjrwsvc.exe__Icslibeay_f_ERR_free_strings]
mov ebp, dword [ecx + 0xc]
add ebp, 0xc
mov edx, dword [ebp]
cmp edx, ebp
je 0x410974
test eax, eax
je 0x410b2f
mov esi, dword [edx + 0x30]
xor ebx, ebx
movzx ecx, word [esi]
test ecx, ecx
je 0x410966
mov dword [esp + 8], eax
xor ecx, ecx
movzx edi, word [esi + ecx*2]
cmp edi, 0x41
jl 0x410952
cmp edi, 0x5a
lea eax, [edi + 0x20]
cmovle edi, eax
inc ecx
movzx eax, di
add ebx, eax
movzx edi, word [esi + ecx*2]
test edi, edi
jne 0x410940
nop
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x410b2f
mov edx, dword [edx]
cmp edx, ebp
jne 0x410926
mov eax, dword [sym.mjrwsvc.exe__Icslibeay_f_ERR_error_string_n]
xor ebx, ebx
xor ebp, ebp
mov esi, dword [sym.mjrwsvc.exe__Icslibeay_f_BIO_new_bio_pair]
cmp dword [esi], 0
je 0x4109b3
mov eax, dword [esp]
xor ecx, ecx
movzx edx, word [eax]
test edx, edx
je 0x4109a5
xor edx, edx
movzx edi, word [eax + edx*2]
inc edx
add ecx, edi
movzx edi, word [eax + edx*2]
test edi, edi
jne 0x410996
cmp ecx, dword [esi + 4]
je 0x4109b3
cmp ecx, dword [esi + 8]
jne 0x410a67
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov edx, eax
mov eax, dword [sym.mjrwsvc.exe__Icslibeay_f_ERR_get_error]
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov dword [esp + 0xc], eax
mov eax, dword [sym.mjrwsvc.exe__Icslibeay_f_BIO_new]
test eax, eax
jbe 0x4109fb
mov eax, dword [esp + 0xc]
xor edx, edx
mov ecx, dword [sym.mjrwsvc.exe__Icslibeay_f_ERR_peek_error]
mov esi, dword [ecx + edx]
mov dword [eax + edx], esi
mov edi, dword [sym.mjrwsvc.exe__Icslibeay_f_ERR_error_string]
add edx, edi
mov ecx, dword [sym.mjrwsvc.exe__Icslibeay_f_BIO_new]
cmp edx, ecx
jb 0x4109dd
test ebx, ebx
je 0x410a67
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax + ebx + 0x78]
mov edi, dword [esi + ebx + 0x20]
mov edx, dword [esi + ebx + 0x18]
add edi, ebx
test edx, edx
jbe 0x410a67
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov dword [esp], esi
mov dword [esp + 8], ebp
mov al, byte [eax]
mov esi, ebx
add esi, dword [edi + ecx*4]
cmp al, byte [esi]
jne 0x410a5e
mov dword [esp + 0x10], edi
xor ebp, ebp
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0xc]
cmp byte [ebp + esi], 0
je 0x410a73
cmp byte [ebp + edi], 0
je 0x410a73
inc ebp
mov dl, byte [ebp + esi]
cmp dl, byte [ebp + edi]
je 0x410a3a
nop dword [eax]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc ecx
cmp ecx, edx
jb 0x410a23
mov ebp, dword [esp + 8]
push 0
call ebp
add esp, 0x18
pop ebp
pop ebx
pop edi
pop esi
ret
mov esi, dword [esp]
mov ebp, dword [esp + 8]
mov eax, dword [esi + ebx + 0x1c]
mov esi, dword [esi + ebx + 0x24]
add eax, ebx
add esi, ebx
movzx edx, word [esi + ecx*2]
mov ecx, dword [eax + edx*4]
add ebx, ecx
je 0x410a67
mov esi, dword [sym.mjrwsvc.exe__Icslibeay_f_SSLeay_version]
lea edi, [esp]
push edi
mov edx, dword [sym.mjrwsvc.exe__Icslibeay_f_RAND_seed]
mov eax, dword [sym.mjrwsvc.exe__Icslibeay_f_BIO_new]
push eax
push edx
push esi
call ebx
mov edx, dword [sym.mjrwsvc.exe__Icslibeay_f_BIO_new_mem_buf]
mov ecx, dword [esp + 4]
add ecx, edx
mov edx, dword [sym.mjrwsvc.exe__Icslibeay_f_ERR_get_error_line_data]
mov eax, dword [sym.mjrwsvc.exe__Icslibeay_f_RAND_seed]
mov dword [esp + 4], ecx
mov ecx, dword [ecx + 4]
cmp edx, eax
jae 0x410af3
mov dword [esp + 8], ebp
mov eax, dword [esp + 4]
mov ebp, dword [eax + edx]
add ebp, ecx
mov dword [esi + edx], ebp
mov ebp, dword [sym.mjrwsvc.exe__Icslibeay_f_ERR_error_string]
add edx, ebp
mov ebp, dword [sym.mjrwsvc.exe__Icslibeay_f_RAND_seed]
cmp edx, ebp
jb 0x410ad5
mov ebp, dword [esp + 8]
mov eax, dword [sym.mjrwsvc.exe__Icslibeay_f_BIO_new_socket]
mov edx, dword [sym.mjrwsvc.exe__Icslibeay_f_BIO_new_fd]
push edi
mov dword [esi + edx*4], eax
push dword [esp + 4]
mov ecx, dword [sym.mjrwsvc.exe__Icslibeay_f_RAND_seed]
push ecx
push esi
call ebx
mov ecx, dword [esi + 0xc]
add ecx, esi
mov eax, dword [sym.mjrwsvc.exe__Icslibeay_f_ERR_remove_state]
add ecx, eax
mov edx, dword [sym.mjrwsvc.exe__Icslibeay_f_ERR_remove_state]
add esi, edx
push esi
call ecx
add esp, 4
jmp 0x410a67
mov ebx, dword [edx + 0x18]
mov eax, dword [sym.mjrwsvc.exe__Icslibeay_f_ERR_error_string_n]
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x41097b
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ecx + ebx + 0x20]
mov esi, dword [ecx + ebx + 0x18]
add eax, ebx
test esi, esi
jbe 0x41097b
mov edx, dword [esp + 0xc]
xor edi, edi
mov dword [esp + 8], ecx
mov dl, byte [edx]
mov ecx, ebx
add ecx, dword [eax + edi*4]
cmp dl, byte [ecx]
jne 0x410ba3
mov dword [esp + 0x10], ebx
xor ebp, ebp
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0xc]
cmp byte [ebp + ecx], 0
je 0x410bad
cmp byte [ebp + ebx], 0
je 0x410bad
inc ebp
mov al, byte [ebp + ecx]
cmp al, byte [ebp + ebx]
je 0x410b7f
nop dword [eax]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
inc edi
cmp edi, esi
jb 0x410b68
jmp 0x41097b
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + ebx + 0x1c]
mov ecx, dword [ecx + ebx + 0x24]
add eax, ebx
add ecx, ebx
movzx edx, word [ecx + edi*2]
mov ebp, dword [eax + edx*4]
add ebp, ebx
jmp 0x41097d
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
jmp 0x410914