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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x100
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], ecx
call fcn.0048d450
mov esi, eax
test edi, edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
je 0x45dbf5
test byte [edi], 1
jne 0x45dba9
mov word [edi], 0
jmp 0x45dbcc
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x45dbcc
push dword [edi + 8]
call fcn.00416a20
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 0x70]
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 0x68]
movsd qword [edi], xmm0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
mov eax, dword [esp + 0x10]
lea ebx, [eax + 4]
lea eax, [edi + 1]
lea edi, [esp + 0xbb]
mov dword [esp + 0x74], eax
mov dword [esp + 0x2c], ebx
jmp 0x45dc1f
test edi, edi
lea edi, [esp + 0xbb]
jne 0x45e403
call fcn.0048d450
sub eax, esi
mov ecx, 0xfc23abff
sbb edx, dword [esp + 0x44]
cmp ecx, eax
mov eax, 6
sbb eax, edx
jl 0x45e330
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
push 0x40
push edi
call dword [eax + 8]
test eax, eax
js 0x45e33d
mov byte [esp + eax + 0xbb], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x45e411
mov ebx, eax
cmp eax, 0xb
jae 0x45dca0
mov eax, ebx
lea edi, [esp + 1]
add al, bl
test ebx, ebx
mov byte [esp], al
jne 0x45dcc9
jmp 0x45dcdb
mov dword [esp + 0x28], esi
mov esi, ebx
add esi, 0x10
and esi, 0xfffffff0
push esi
call fcn.00416880
add esp, 4
or esi, 1
mov dword [esp + 8], eax
mov edi, eax
mov dword [esp], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 4], 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]
test al, 1
je 0x45dd00
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x45dd06
shr eax, 1
lea ecx, [esp + 1]
mov ebx, dword [esp + 0x2c]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0xb0], str.INFO
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0xb4], 4
sub esp, 0x10
movsd xmm0, qword [esp + 0xc0]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xa0]
movsd qword [esp], xmm0
call fcn.0045ace0
add esp, 0x10
test al, al
je 0x45de40
lea esi, [esp + 0x18]
mov eax, esp
mov ecx, esi
push eax
push 0xffffffffffffffff
push 4
push eax
call fcn.0041c460
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x50]
test ecx, ecx
je 0x45e418
mov eax, dword [ecx]
push esi
call dword [eax + 0x18]
movsd xmm0, qword [esp + 0x18]
mov eax, dword [esp + 0x20]
test edi, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x40], eax
movsd qword [esp + 0x38], xmm0
je 0x45ddf2
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
jae 0x45df02
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
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 [edi + 4], 0xc
test byte [esp + 0x38], 1
je 0x45de05
push dword [esp + 0x40]
call fcn.00416a20
add esp, 4
call fcn.0048d450
test byte [esp + 0x18], 1
mov esi, eax
mov dword [esp + 0x44], edx
je 0x45de23
push dword [esp + 0x20]
call fcn.00416a20
add esp, 4
xor edi, edi
test byte [esp], 1
je 0x45dc10
jmp 0x45e31f
movzx eax, byte [esp]
test al, 1
je 0x45de60
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x45de66
shr eax, 1
lea ecx, [esp + 1]
lea edi, [esp + 0xbb]
mov dword [esp + 0xa8], str.OKAY
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0xac], 4
sub esp, 0x10
movsd xmm0, qword [esp + 0xb8]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x98]
movsd qword [esp], xmm0
call fcn.0045ace0
add esp, 0x10
test al, al
je 0x45def0
mov eax, esp
lea ecx, [esp + 0x58]
push eax
push 0xffffffffffffffff
push 4
push eax
call fcn.0041c460
mov edi, dword [ebp + 8]
test edi, edi
je 0x45dfba
test byte [edi], 1
jne 0x45dfdb
mov word [edi], 0
jmp 0x45dffe
movzx eax, byte [esp]
test al, 1
je 0x45df1e
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x45df24
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.0045b9e0
test byte [esp + 0x38], 1
jne 0x45ddf9
jmp 0x45de05
shr eax, 1
lea ecx, [esp + 1]
mov dword [esp + 0xa0], str.FAIL
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0xa4], 4
sub esp, 0x10
movsd xmm0, qword [esp + 0xb0]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x90]
movsd qword [esp], xmm0
call fcn.0045ace0
add esp, 0x10
test al, al
je 0x45dfa1
lea eax, [esp + 0xbf]
push eax
push str.remote:__s
lea eax, [esp + 0x20]
push eax
call fcn.0048cfd0
add esp, 0xc
test byte [ebx], 1
jne 0x45e034
mov word [ebx], 0
jmp 0x45e065
movzx eax, byte [esp]
test al, 1
je 0x45e0a5
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x45e0ab
test byte [esp + 0x58], 1
mov edi, 1
mov dword [esp + 0x14], 0
je 0x45e315
push dword [esp + 0x60]
jmp 0x45e1c7
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x45dffe
push dword [edi + 8]
call fcn.00416a20
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 0x58]
movsd qword [edi], xmm0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
jmp 0x45e310
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xc]
mov byte [eax], 0
mov dword [ecx + 8], 0
test byte [ecx + 4], 1
je 0x45e065
mov edi, esi
mov esi, dword [esp + 0x10]
push dword [esi + 0xc]
call fcn.00416a20
add esp, 4
mov dword [esi + 4], 0
mov esi, edi
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x48]
mov dword [ebx + 8], eax
mov eax, esp
movsd xmm0, qword [esp + 0x18]
movsd qword [ebx], xmm0
push eax
push 0xffffffffffffffff
push 4
push eax
call fcn.0041c460
mov edi, dword [ebp + 8]
test edi, edi
je 0x45e1ab
test byte [edi], 1
jne 0x45e1de
mov word [edi], 0
jmp 0x45e201
shr eax, 1
lea ecx, [esp + 1]
mov dword [esp + 0x98], str.DATA
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x9c], 4
sub esp, 0x10
movsd xmm0, qword [esp + 0xa8]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x88]
movsd qword [esp], xmm0
call fcn.0045ace0
add esp, 0x10
test al, al
je 0x45e185
mov eax, esp
lea ecx, [esp + 0x18]
push eax
push 0xffffffffffffffff
push 4
push eax
call fcn.0041c460
test byte [esp + 0x18], 1
lea eax, [esp + 0x19]
je 0x45e119
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]
mov edi, dword [ebp + 8]
test ecx, ecx
je 0x45e132
mov dword [ecx], eax
lea eax, [esp + 0x19]
movzx ebx, byte [esp + 0x18]
test edi, edi
mov ecx, eax
mov eax, dword [eax]
mov ecx, dword [ecx + 3]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x33], ecx
je 0x45e286
test byte [edi], 1
mov dword [esp + 0x28], eax
jne 0x45e296
mov word [edi], 0
jmp 0x45e2b9
push edi
push str.Device_sent_unknown_status_code:__s
lea eax, [esp + 0x20]
push eax
call fcn.0048cfd0
add esp, 0xc
test byte [ebx], 1
jne 0x45e237
mov word [ebx], 0
jmp 0x45e268
test byte [esp + 0x48], 1
mov edi, 1
mov dword [esp + 0x14], 4
je 0x45e315
push dword [esp + 0x50]
call fcn.00416a20
add esp, 4
test byte [esp], 1
je 0x45dc10
jmp 0x45e31f
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x45e201
push dword [edi + 8]
call fcn.00416a20
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], 4
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 0x48]
movsd qword [edi], xmm0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
jmp 0x45e310
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xc]
mov byte [eax], 0
mov dword [ecx + 8], 0
test byte [ecx + 4], 1
je 0x45e268
mov edi, esi
mov esi, dword [esp + 0x10]
push dword [esi + 0xc]
call fcn.00416a20
add esp, 4
mov dword [esi + 4], 0
mov esi, edi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], 3
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [ebx], xmm0
jmp 0x45e310
test bl, 1
je 0x45e2e3
push eax
call fcn.00416a20
add esp, 4
jmp 0x45e2e3
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x45e2b9
push dword [edi + 8]
call fcn.00416a20
add esp, 4
mov dword [edi], 0
mov byte [edi], bl
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x33]
mov eax, dword [esp + 0x30]
mov dword [edx + 3], ecx
mov ecx, dword [esp + 0x28]
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 ebx, dword [esp + 0x2c]
je 0x45e2fa
push dword [esp + 0x20]
call fcn.00416a20
add esp, 4
mov dword [esp + 0x14], 0
nop word cs:[eax + eax]
nop dword [eax]
mov edi, 1
test byte [esp], 1
je 0x45dc10
push dword [esp + 8]
call fcn.00416a20
add esp, 4
jmp 0x45dc10
mov dword [esp + 0x14], 5
jmp 0x45e403
push 0x20
call fcn.00416880
add esp, 4
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 + 0xc]
push eax
call fcn.0048cfd0
add esp, 0x10
test byte [ebx], 1
jne 0x45e39e
mov word [ebx], 0
jmp 0x45e3cb
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xc]
mov byte [eax], 0
mov dword [ecx + 8], 0
test byte [ecx + 4], 1
je 0x45e3cb
mov esi, dword [esp + 0x10]
push dword [esi + 0xc]
call fcn.00416a20
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esp + 8]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp]
movsd qword [ebx], xmm0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
push edi
call fcn.00416a20
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
mov ecx, esp
call fcn.0041bfb0
call fcn.0040c180
nop dword [eax]