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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1b0
mov esi, ecx
mov edi, dword [ebp + 8]
lea ebx, [esp + 0xab]
push 0x101
push 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
call fcn.0049e090
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
test edi, edi
je 0x465182
test byte [edi], 1
je 0x46516e
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x46516e
push dword [edi + 8]
call fcn.0041a380
add esp, 4
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov eax, edi
lea edi, [esi + 4]
add eax, 1
mov dword [esp + 0x60], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x64], esi
jmp 0x4651bb
push dword [esp + 8]
call fcn.0041a380
add esp, 4
test bl, bl
lea ebx, [esp + 0xab]
je 0x465900
call fcn.0049e090
sub eax, dword [esp + 0x3c]
sbb edx, dword [esp + 0x38]
mov ecx, 0xfc23abff
cmp ecx, eax
mov eax, 6
sbb eax, edx
jl 0x465848
mov ecx, dword [esi]
mov eax, dword [ecx]
push 0x100
push ebx
call dword [eax + 8]
test eax, eax
js 0x465855
mov byte [esp + eax + 0xab], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x46590e
mov ebx, eax
cmp eax, 0xb
jae 0x465240
mov eax, ebx
add al, bl
mov byte [esp], al
lea edi, [esp + 1]
test ebx, ebx
jne 0x465265
jmp 0x465277
mov esi, ebx
add esi, 0x10
and esi, 0xfffffff0
push esi
call fcn.0041a1e0
add esp, 4
mov edi, eax
mov dword [esp + 8], eax
or esi, 1
mov dword [esp], esi
mov esi, dword [esp + 0x64]
mov dword [esp + 4], ebx
push ebx
lea eax, [esp + 0xaf]
push eax
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
movzx eax, byte [esp]
test al, 1
je 0x465290
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x465296
shr eax, 1
lea ecx, [esp + 1]
mov edi, dword [esp + 0x1c]
lea ebx, [esp + 0xab]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x98], str.INFO
mov dword [esp + 0x9c], 4
sub esp, 0x10
movsd xmm0, qword [esp + 0xa8]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xb0]
movsd qword [esp], xmm0
call fcn.00462460
add esp, 0x10
test al, al
je 0x4653f0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
lea ebx, [esp + 0x10]
mov ecx, ebx
mov eax, esp
push eax
push 0xffffffffffffffff
push 4
push eax
call fcn.0041da40
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x465915
mov eax, dword [ecx]
push ebx
call dword [eax + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [esp + 0x28], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46539d
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
jae 0x4654f2
mov edx, dword [esp + 0x30]
mov dword [eax + 8], edx
movsd xmm0, qword [esp + 0x28]
movsd qword [eax], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
add dword [ecx + 4], 0xc
test byte [esp + 0x28], 1
je 0x4653b0
push dword [esp + 0x30]
call fcn.0041a380
add esp, 4
call fcn.0049e090
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
test byte [esp + 0x10], 1
je 0x4653d0
push dword [esp + 0x18]
call fcn.0041a380
add esp, 4
mov bl, 1
test byte [esp], 1
je 0x4651ac
jmp 0x4651a0
movzx eax, byte [esp]
test al, 1
je 0x465410
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x465416
shr eax, 1
lea ecx, [esp + 1]
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x88], str.OKAY
mov dword [esp + 0x8c], 4
sub esp, 0x10
movsd xmm0, qword [esp + 0x98]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xa0]
movsd qword [esp], xmm0
call fcn.00462460
add esp, 0x10
test al, al
je 0x4654e0
lea ecx, [esp + 0x50]
mov eax, esp
push eax
push 0xffffffffffffffff
push 4
push eax
call fcn.0041da40
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x465634
test byte [ebx], 1
je 0x4654a4
mov eax, dword [ebx + 8]
mov byte [eax], 0
mov dword [ebx + 4], 0
test byte [ebx], 1
je 0x4654a4
push dword [ebx + 8]
call fcn.0041a380
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x50]
movsd qword [ebx], xmm0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
jmp 0x465649
movzx eax, byte [esp]
test al, 1
je 0x46550c
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x465512
lea eax, [esp + 0x28]
push eax
call fcn.00462fc0
test byte [esp + 0x28], 1
jne 0x4653a4
jmp 0x4653b0
shr eax, 1
lea ecx, [esp + 1]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x78], str.FAIL
mov dword [esp + 0x7c], 4
sub esp, 0x10
movsd xmm0, qword [esp + 0x88]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x90]
movsd qword [esp], xmm0
call fcn.00462460
add esp, 0x10
test al, al
je 0x465622
lea eax, [esp + 0xaf]
push eax
push str.remote:__s
lea eax, [esp + 0x18]
push eax
call fcn.0049d930
add esp, 0xc
test byte [edi], 1
je 0x46559d
mov eax, dword [esi + 0xc]
mov byte [eax], 0
mov dword [esi + 8], 0
test byte [esi + 4], 1
je 0x46559d
push dword [esi + 0xc]
call fcn.0041a380
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [edi], xmm0
lea ecx, [esp + 0x40]
mov eax, esp
push eax
push 0xffffffffffffffff
push 4
push eax
call fcn.0041da40
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4657de
test byte [ebx], 1
je 0x4655ec
mov eax, dword [ebx + 8]
mov byte [eax], 0
mov dword [ebx + 4], 0
test byte [ebx], 1
je 0x4655ec
push dword [ebx + 8]
call fcn.0041a380
add esp, 4
mov eax, dword [esp + 0x48]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x40]
movsd qword [ebx], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0xc], 4
jmp 0x4657f9
movzx eax, byte [esp]
test al, 1
je 0x465662
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x465668
xor ebx, ebx
test byte [esp + 0x50], 1
je 0x46564b
push dword [esp + 0x58]
call fcn.0041a380
add esp, 4
xor ebx, ebx
mov dword [esp + 0xc], 0
test byte [esp], 1
je 0x4651ac
jmp 0x4651a0
shr eax, 1
lea ecx, [esp + 1]
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x68], str.DATA
mov dword [esp + 0x6c], 4
sub esp, 0x10
movsd xmm0, qword [esp + 0x78]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x80]
movsd qword [esp], xmm0
call fcn.00462460
add esp, 0x10
test al, al
je 0x46578d
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x10]
mov eax, esp
push eax
push 0xffffffffffffffff
push 4
push eax
call fcn.0041da40
test byte [esp + 0x10], 1
lea eax, [esp + 0x11]
je 0x4656e5
mov eax, dword [esp + 0x18]
push 0x10
push 0
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
add esp, 0xc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4656fb
mov dword [ecx], eax
movzx ebx, byte [esp + 0x10]
lea ecx, [esp + 0x11]
mov eax, dword [ecx]
mov ecx, dword [ecx + 3]
mov dword [esp + 0x20], eax
mov dword [esp + 0x23], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov edi, dword [ebp + 8]
test edi, edi
je 0x46580a
mov dword [esp + 0xc], eax
test byte [edi], 1
je 0x46575e
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x46575e
push dword [edi + 8]
call fcn.0041a380
add esp, 4
mov byte [edi], bl
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x23]
mov edx, dword [esp + 0x60]
mov dword [edx + 3], ecx
mov dword [edx], eax
mov eax, dword [esp + 0xc]
mov dword [edi + 8], eax
mov dword [esp + 0x23], 0
mov dword [esp + 0x20], 0
jmp 0x465818
push ebx
push str.Device_sent_unknown_status_code:__s
lea eax, [esp + 0x18]
push eax
call fcn.0049d930
add esp, 0xc
test byte [edi], 1
je 0x4657c3
mov eax, dword [esi + 0xc]
mov byte [eax], 0
mov dword [esi + 8], 0
test byte [esi + 4], 1
je 0x4657c3
push dword [esi + 0xc]
call fcn.0041a380
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [edi], xmm0
mov dword [esp + 0xc], 3
jmp 0x4657f9
mov dword [esp + 0xc], 4
test byte [esp + 0x40], 1
je 0x4657f9
push dword [esp + 0x48]
call fcn.0041a380
add esp, 4
xor ebx, ebx
test byte [esp], 1
je 0x4651ac
jmp 0x4651a0
test bl, 1
je 0x465818
push eax
call fcn.0041a380
add esp, 4
test byte [esp + 0x10], 1
je 0x46582b
push dword [esp + 0x18]
call fcn.0041a380
add esp, 4
xor ebx, ebx
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0x1c]
test byte [esp], 1
je 0x4651ac
jmp 0x4651a0
mov dword [esp + 0xc], 5
jmp 0x465900
push 0x20
call fcn.0041a1e0
add esp, 4
mov ebx, edi
mov edi, eax
movups xmm0, xmmword [str.Status_read_failed]
movups xmmword [eax], xmm0
mov word [eax + 0x10], 0x6465
mov byte [eax + 0x12], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
add esp, 4
push eax
push edi
push str._s___s_
lea eax, [esp + 0xc]
push eax
call fcn.0049d930
add esp, 0x10
test byte [ebx], 1
jne 0x4658a6
mov byte [ebx + 1], 0
jmp 0x4658c4
mov eax, dword [esi + 0xc]
mov byte [eax], 0
mov dword [esi + 8], 0
test byte [esi + 4], 1
je 0x4658c4
push dword [esi + 0xc]
call fcn.0041a380
add esp, 4
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 8], eax
movsd xmm0, qword [esp]
movsd qword [ecx], xmm0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
push edi
call fcn.0041a380
add esp, 4
mov dword [esp + 0xc], 2
mov eax, dword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ecx, esp
call fcn.0041d590
call fcn.0040e230
nop word [eax + eax]