Function at 0x41ef90
Capabilities:
Connect socket
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4b6f60
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4de8bc]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de8bc]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [esp + 0x84]
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
xor ebx, ebx
cmp byte [0x4ea120], bl
mov esi, ecx
je 0x41efe6
mov eax, dword [esi + 0x2c]
push eax
call ebp
mov dword [esi + 0x2c], ebx
jmp 0x41effb
call fcn.0041cc20
push edi
mov ecx, esi
call fcn.0041e470
test al, al
je 0x41f1d4
cmp byte [0x4ea120], bl
je 0x41f063
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
push 0x2223
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], 0x100007f
mov word [esp + 0x54], 2
call dword [sym.imp.WS2_32.dll_ntohs]
push ebx
push 1
push 2
mov word [esp + 0x5e], ax
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [esp + 0x54]
push ecx
push eax
mov dword [esi + 0x2c], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41f0c8
mov edx, dword [esi + 0x2c]
push edx
call ebp
mov dword [esi + 0x2c], ebx
jmp 0x41f1d4
add dword [esi + 0x60], 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x5c]
push eax
push 0x4e45504f
mov ecx, esi
mov dword [esp + 0x64], str.tcp:8739
mov dword [esp + 0x68], 9
call fcn.0041cd50
test al, al
jne 0x41f0c8
push str.Reconnect_failed__err21_
lea ecx, [esp + 0x54]
call fcn.00406160
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
mov dword [esp + 0x84], ebx
call fcn.004054b0
cmp dword [esp + 0x68], 0x10
jb 0x41f1d4
mov edx, dword [esp + 0x54]
push edx
jmp 0x41f1cc
mov ecx, esi
mov dword [esi + 0x30], ebx
call fcn.0041d7e0
test al, al
je 0x41f198
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
xor eax, eax
push 0xf
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call edi
push 0x1a3
mov dword [esp + 0x18], eax
call edi
cmp dword [0x4e9b88], ebx
mov dword [esp + 0x18], eax
mov eax, 2
je 0x41f127
mov eax, 3
push eax
call edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x20
call fcn.0041d580
push 0x14
call fcn.0042ed23
add esp, 4
cmp eax, ebx
je 0x41f16c
mov dword [eax + 8], ebx
mov byte [eax + 0xc], 1
mov dword [eax], vtable.UsbReadThread.0
mov dword [eax + 0x10], esi
mov edi, eax
jmp 0x41f16e
xor edi, edi
lea edx, [edi + 4]
push edx
push ebx
push edi
push 0x402000
push ebx
push ebx
mov byte [edi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xeeeeeeee
mov ecx, esi
mov dword [edi + 8], eax
call fcn.0041d650
mov al, 1
jmp 0x41f1d6
push str.Reconnect_failed
lea ecx, [esp + 0x38]
call fcn.00406160
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
mov dword [esp + 0x84], 1
call fcn.004054b0
cmp dword [esp + 0x4c], 0x10
jb 0x41f1d4
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042e631
add esp, 4
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0042e636
add esp, 0x68
ret 8