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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x83e264]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 0
mov ebx, dword [edi]
je 0x588d1b
cmp dword [edi + 0x1c], 0
je 0x588d2f
test ebx, ebx
je 0x588d43
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x118], ecx
test ecx, ecx
je 0x588d57
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x5889ce
cmp dword [ecx], 0
jne 0x588d6b
call fcn.005908f0
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x10c], eax
test eax, eax
je 0x588a31
mov eax, dword [ebx + 4]
mov dword [ebp - 0x110], eax
test eax, eax
je 0x588a22
push eax
call fcn.00567000
add esp, 4
mov dword [ebp - 0x114], eax
xor esi, esi
test eax, eax
je 0x588a22
push esi
push dword [ebp - 0x110]
call fcn.00587ef0
add esp, 8
cmp eax, dword [ebp - 0x10c]
je 0x588a31
inc esi
cmp esi, dword [ebp - 0x114]
jb 0x588a02
push 0x493
call fcn.004d86d0
jmp 0x588bd9
push 0x8c
push 1
push dword [ebx]
call fcn.004d8260
mov esi, eax
add esp, 0xc
test esi, esi
je 0x588bdc
mov eax, dword [edi + 4]
mov dword [ebp - 0x10c], eax
movzx eax, word [edi + 8]
mov dword [ebp - 0x110], eax
call fcn.004db1d0
mov dword [ebp - 0x114], eax
test eax, eax
je 0x588ab0
mov ecx, dword [eax]
push 0x409
push eax
mov ecx, dword [ecx + 4]
call ecx
add esp, 8
cmp eax, 6
jl 0x588ab0
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
movzx eax, ax
push eax
push dword [ebp - 0x10c]
mov ecx, dword [edx]
push ebx
push str.id_p:_attempting_to_initialize_a_new_client_channel_to__s:_d
push 0x409
mov eax, dword [ecx]
push 6
push edx
call eax
add esp, 0x1c
push 0x588fc0
lea eax, [esi + 0x80]
push esi
push eax
mov dword [ebp - 0x114], eax
call fcn.00716800
mov eax, dword [edi + 0x24]
mov dword [esi + 0x70], eax
lea eax, [ebx + 0x1c]
push eax
call fcn.007167e0
mov dword [esi], ebx
add esp, 0x10
mov eax, dword [edi + 0x14]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x118]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x54], xmm0
mov eax, dword [eax + 0x10]
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x110]
mov word [esi + 0x68], ax
mov al, byte [edi + 0x20]
mov byte [esi + 0x78], al
mov eax, dword [edi + 0x28]
mov edi, dword [ebp - 0x11c]
mov dword [esi + 0x7c], eax
test edi, edi
je 0x588b86
lea eax, [esi + 0x18]
push edi
push eax
call fcn.00583e00
add esp, 8
test eax, eax
jne 0x588bce
mov byte [esi + 0x50], 1
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x4c], eax
cmp dword [ebx + 0x18], 0
je 0x588b50
mov byte [esi + 0x34], 1
mov eax, dword [edi + 0xc]
test eax, eax
je 0x588b61
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], 0x589a50
mov eax, dword [edi + 0x10]
test eax, eax
je 0x588b72
mov dword [esi + 0x48], eax
mov dword [esi + 0x28], 0x589a70
mov eax, dword [edi + 8]
test eax, eax
je 0x588b7c
mov dword [esi + 0x44], eax
mov dword [esi + 0x20], 0x589aa0
mov dword [esi + 0x2c], esi
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x588ccf
cmp eax, 1
je 0x588ccf
mov edi, dword [ebp - 0x10c]
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x588bb0
sub edi, ecx
cmp edi, 0x100
jb 0x588bf0
push 0x41f
call fcn.004d86d0
add esp, 4
push dword [ebp - 0x114]
call fcn.00716820
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051deb6
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00520480
push edi
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push eax
call fcn.0051ff00
add esp, 0x18
cmp dword [ebp - 0x11c], 3
jne 0x588c2a
mov eax, dword [ebp - 0x110]
jmp 0x588c2c
xor eax, eax
push 0x248
push dword [ebx]
mov word [ebp - 8], ax
call fcn.004d8110
mov edi, eax
add esp, 8
test edi, edi
je 0x588bce
push dword [ebp - 0x118]
push dword [ebx]
push edi
call fcn.00596710
add esp, 0xc
test eax, eax
je 0x588c6a
push edi
push dword [ebx]
call fcn.004d84f0
add esp, 8
jmp 0x588bce
mov ebx, dword [esi + 0x7c]
mov byte [esi + 0x74], 1
test ebx, ebx
jne 0x588c84
mov eax, dword [esi]
push dword [eax + 4]
call fcn.00587f60
add esp, 4
mov ebx, eax
lea eax, [esi + 0x80]
push eax
call fcn.007167e0
push esi
push 0x5892b0
push ebx
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.005966b0
add esp, 0x18
test eax, eax
je 0x588d08
push edi
call fcn.005965d0
mov eax, dword [esi]
push edi
push dword [eax]
call fcn.004d84f0
lea eax, [esi + 0x80]
push eax
call fcn.00716820
add esp, 0x10
jmp 0x588bce
push dword [ebp - 0x10c]
push dword [ebx]
call fcn.004dcb60
add esp, 8
mov dword [esi + 0x6c], eax
test eax, eax
je 0x588bce
push esi
lea ecx, [ebx + 0xc]
push ecx
push 0x589590
push eax
push dword [ebx + 8]
call fcn.005585d0
add esp, 0x14
test eax, eax
jne 0x588bce
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051deb6
mov esp, ebp
pop ebp
ret
push 0x2d8
push str.D:_sdk_cpp_workspace_win32_aws_iot_device_sdk_cpp_v2crt_aws_crt_cppcrt_aws_c_io_sourcechannel_bootstrap.c
push str.options__setup_callback
call fcn.004d8990
push 0x2d9
push str.D:_sdk_cpp_workspace_win32_aws_iot_device_sdk_cpp_v2crt_aws_crt_cppcrt_aws_c_io_sourcechannel_bootstrap.c
push str.options__shutdown_callback
call fcn.004d8990
push 0x2da
push str.D:_sdk_cpp_workspace_win32_aws_iot_device_sdk_cpp_v2crt_aws_crt_cppcrt_aws_c_io_sourcechannel_bootstrap.c
push str.bootstrap
call fcn.004d8990
push 0x2dd
push str.D:_sdk_cpp_workspace_win32_aws_iot_device_sdk_cpp_v2crt_aws_crt_cppcrt_aws_c_io_sourcechannel_bootstrap.c
push str.socket_options___NULL
call fcn.004d8990
push 0x2e1
push str.D:_sdk_cpp_workspace_win32_aws_iot_device_sdk_cpp_v2crt_aws_crt_cppcrt_aws_c_io_sourcechannel_bootstrap.c
push str.tls_options__NULL__socket_options__type__AWS_SOCKET_STREAM
call fcn.004d8990
int3