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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1c0
mov edi, dword [ebp + 8]
mov esi, ecx
lea ebx, [esp + 0xbb]
push 0x101
push 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
call fcn.00495a30
test edi, edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x28], 0
mov word [esp + 0x2c], 0
je 0x461715
test byte [edi], 1
jne 0x4616c7
mov word [edi], 0
jmp 0x4616ea
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x4616ea
push dword [edi + 8]
call fcn.00417920
add esp, 4
mov dword [edi], 0
mov word [edi], 0
mov eax, dword [esp + 0x28]
mov dword [edi + 2], eax
movzx eax, word [esp + 0x2c]
mov word [edi + 6], ax
mov dword [edi + 8], 0
mov word [esp + 0x2c], 0
mov dword [esp + 0x28], 0
lea eax, [esi + 4]
lea ecx, [edi + 1]
mov dword [esp + 0x74], esi
mov edi, eax
mov dword [esp + 0x70], ecx
mov dword [esp + 4], edi
jmp 0x46174b
push dword [esp + 0x10]
call fcn.00417920
add esp, 4
test bl, bl
lea ebx, [esp + 0xbb]
je 0x461f2d
call fcn.00495a30
sub eax, dword [esp + 0x4c]
mov ecx, 0xfc23abff
sbb edx, dword [esp + 0x48]
cmp ecx, eax
mov eax, 6
sbb eax, edx
jl 0x461e5a
mov ecx, dword [esi]
mov eax, dword [ecx]
push 0x100
push ebx
call dword [eax + 8]
test eax, eax
js 0x461e67
mov byte [esp + eax + 0xbb], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x461f3b
mov ebx, eax
cmp eax, 0xb
jae 0x4617d0
mov eax, ebx
lea edi, [esp + 9]
add al, bl
test ebx, ebx
mov byte [esp + 8], al
jne 0x4617f6
jmp 0x461808
mov esi, ebx
add esi, 0x10
and esi, 0xfffffff0
push esi
call fcn.00417780
add esp, 4
or esi, 1
mov dword [esp + 0x10], eax
mov edi, eax
mov dword [esp + 8], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0xc], ebx
push ebx
lea eax, [esp + 0xbf]
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 + 8]
test al, 1
je 0x461820
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x461826
shr eax, 1
lea ecx, [esp + 9]
mov edi, dword [ebp + 8]
lea ebx, [esp + 0xbb]
mov dword [esp + 0xa8], str.INFO
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xac], 4
sub esp, 0x10
movsd xmm0, qword [esp + 0xb8]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xc0]
movsd qword [esp], xmm0
call fcn.0045e4e0
add esp, 0x10
test al, al
je 0x461980
lea edi, [esp + 0x18]
lea eax, [esp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov ecx, edi
push eax
push 0xffffffffffffffff
push 4
push eax
call fcn.0041d310
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x461f44
mov eax, dword [ecx]
push edi
call dword [eax + 0x18]
mov ecx, dword [ebp + 0xc]
movsd xmm0, qword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
test ecx, ecx
mov dword [esp + 0x40], eax
movsd qword [esp + 0x38], xmm0
je 0x461932
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
jae 0x461a43
mov edx, dword [esp + 0x40]
mov dword [eax + 8], edx
movsd xmm0, qword [esp + 0x38]
movsd qword [eax], xmm0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
add dword [ecx + 4], 0xc
test byte [esp + 0x38], 1
je 0x461945
push dword [esp + 0x40]
call fcn.00417920
add esp, 4
call fcn.00495a30
test byte [esp + 0x18], 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
je 0x461965
push dword [esp + 0x20]
call fcn.00417920
add esp, 4
mov bl, 1
test byte [esp + 8], 1
je 0x46173c
jmp 0x461730
movzx eax, byte [esp + 8]
test al, 1
je 0x4619a0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x4619a6
shr eax, 1
lea ecx, [esp + 9]
mov dword [esp + 0x98], str.OKAY
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], ecx
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.0045e4e0
add esp, 0x10
test al, al
je 0x461a30
lea eax, [esp + 8]
lea ecx, [esp + 0x60]
push eax
push 0xffffffffffffffff
push 4
push eax
call fcn.0041d310
test edi, edi
je 0x461afe
test byte [edi], 1
jne 0x461b17
mov word [edi], 0
jmp 0x461b3a
movzx eax, byte [esp + 8]
test al, 1
je 0x461a5d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x461a63
lea eax, [esp + 0x38]
push eax
call fcn.0045f440
test byte [esp + 0x38], 1
jne 0x461939
jmp 0x461945
shr eax, 1
lea ecx, [esp + 9]
mov dword [esp + 0x88], str.FAIL
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], ecx
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.0045e4e0
add esp, 0x10
test al, al
je 0x461ae4
lea eax, [esp + 0xbf]
push eax
push str.remote:__s
lea eax, [esp + 0x20]
push eax
call fcn.004955f0
add esp, 0xc
mov eax, dword [esp + 4]
test byte [eax], 1
jne 0x461b81
mov word [eax], 0
jmp 0x461ba6
movzx eax, byte [esp + 8]
test al, 1
je 0x461be9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x461bef
xor ebx, ebx
test byte [esp + 0x60], 1
je 0x461b65
push dword [esp + 0x68]
call fcn.00417920
add esp, 4
xor ebx, ebx
jmp 0x461b65
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x461b3a
push dword [edi + 8]
call fcn.00417920
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 0x68]
xor ebx, ebx
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 0x60]
movsd qword [edi], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
mov edi, dword [esp + 4]
mov dword [esp + 0x14], 0
test byte [esp + 8], 1
je 0x46173c
jmp 0x461730
mov eax, dword [esi + 0xc]
mov byte [eax], 0
mov dword [esi + 8], 0
test byte [esi + 4], 1
je 0x461ba6
push dword [esi + 0xc]
call fcn.00417920
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 4]
mov dword [ecx + 8], eax
lea eax, [esp + 8]
movsd xmm0, qword [esp + 0x18]
movsd qword [ecx], xmm0
lea ecx, [esp + 0x50]
push eax
push 0xffffffffffffffff
push 4
push eax
call fcn.0041d310
test edi, edi
je 0x461d08
test byte [edi], 1
jne 0x461d25
mov word [edi], 0
jmp 0x461d48
shr eax, 1
lea ecx, [esp + 9]
mov dword [esp + 0x78], str.DATA
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ecx
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.0045e4e0
add esp, 0x10
test al, al
je 0x461cde
lea eax, [esp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x18]
push eax
push 0xffffffffffffffff
push 4
push eax
call fcn.0041d310
test byte [esp + 0x18], 1
lea eax, [esp + 0x19]
je 0x461c77
mov eax, dword [esp + 0x20]
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 0x461c8d
mov dword [ecx], eax
lea ecx, [esp + 0x19]
movzx ebx, byte [esp + 0x18]
test edi, edi
mov eax, dword [ecx]
mov ecx, dword [ecx + 3]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x33], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
je 0x461ddf
test byte [edi], 1
mov dword [esp + 0x14], eax
jne 0x461def
mov word [edi], 0
jmp 0x461e12
push ebx
push str.Device_sent_unknown_status_code:__s
lea eax, [esp + 0x20]
push eax
call fcn.004955f0
add esp, 0xc
mov edi, dword [esp + 4]
test byte [edi], 1
jne 0x461d8f
mov word [edi], 0
jmp 0x461db4
test byte [esp + 0x50], 1
mov dword [esp + 0x14], 4
je 0x461d79
push dword [esp + 0x58]
call fcn.00417920
add esp, 4
jmp 0x461d79
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x461d48
push dword [edi + 8]
call fcn.00417920
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], 4
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 0x50]
movsd qword [edi], xmm0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
mov edi, dword [esp + 4]
xor ebx, ebx
test byte [esp + 8], 1
je 0x46173c
jmp 0x461730
mov eax, dword [esi + 0xc]
mov byte [eax], 0
mov dword [esi + 8], 0
test byte [esi + 4], 1
je 0x461db4
push dword [esi + 0xc]
call fcn.00417920
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x14], 3
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [edi], xmm0
test byte [esp + 8], 1
je 0x46173c
jmp 0x461730
test bl, 1
je 0x461e3c
push eax
call fcn.00417920
add esp, 4
jmp 0x461e3c
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x461e12
push dword [edi + 8]
call fcn.00417920
add esp, 4
mov dword [edi], 0
mov byte [edi], bl
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x33]
mov eax, dword [esp + 0x30]
mov dword [edx + 3], ecx
mov ecx, dword [esp + 0x14]
mov dword [edx], eax
mov dword [edi + 8], ecx
mov dword [esp + 0x33], 0
mov dword [esp + 0x30], 0
test byte [esp + 0x18], 1
mov edi, dword [esp + 4]
je 0x461e53
push dword [esp + 0x20]
call fcn.00417920
add esp, 4
xor ebx, ebx
jmp 0x461b69
mov dword [esp + 0x14], 5
jmp 0x461f2d
push 0x20
call fcn.00417780
add esp, 4
mov ebx, edi
mov edi, eax
mov dword [eax], 0x74617453
mov dword [eax + 4], 0x72207375
mov dword [eax + 8], 0x20646165
mov dword [eax + 0xc], 0x6c696166
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 + 0x14]
push eax
call fcn.004955f0
add esp, 0x10
test byte [ebx], 1
jne 0x461eca
mov word [ebx], 0
jmp 0x461eef
mov eax, dword [esi + 0xc]
mov byte [eax], 0
mov dword [esi + 8], 0
test byte [esi + 4], 1
je 0x461eef
push dword [esi + 0xc]
call fcn.00417920
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
mov dword [ecx + 8], eax
movsd xmm0, qword [esp + 8]
movsd qword [ecx], xmm0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
push edi
call fcn.00417920
add esp, 4
mov dword [esp + 0x14], 2
mov eax, dword [esp + 0x14]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea ecx, [esp + 8]
call fcn.0041ce60
call fcn.0040cdf0
nop dword [eax]