Function at 0x41ed10
Capabilities:
Connect socket
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4bc960
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4e5a68]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e5a68]
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 [0x4f1250], bl
mov esi, ecx
je 0x41ed66
mov eax, dword [esi + 0x2c]
push eax
call ebp
mov dword [esi + 0x2c], ebx
jmp 0x41ed7b
call fcn.0041ca00
push edi
mov ecx, esi
call fcn.0041e200
test al, al
je 0x41ef43
cmp byte [0x4f1250], bl
je 0x41ede3
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 0x41ee48
mov edx, dword [esi + 0x2c]
push edx
call ebp
mov dword [esi + 0x2c], ebx
jmp 0x41ef43
add dword [esi + 0x5c], 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.0041cb30
test al, al
jne 0x41ee48
push str.Reconnect_failed__err21_
lea ecx, [esp + 0x54]
call fcn.00405e70
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
mov dword [esp + 0x84], ebx
call fcn.00405120
cmp dword [esp + 0x68], 0x10
jb 0x41ef43
mov edx, dword [esp + 0x54]
push edx
jmp 0x41ef3b
mov ecx, esi
mov dword [esi + 0x30], ebx
call fcn.0041d5a0
test al, al
je 0x41ef07
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 0x1a1
mov dword [esp + 0x18], eax
call edi
push 2
mov dword [esp + 0x1c], 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.0041d340
push 0x14
call fcn.004321b4
add esp, 4
cmp eax, ebx
je 0x41eedb
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 0x41eedd
xor edi, edi
lea edx, [edi + 4]
push edx
push ebx
push edi
push 0x401e40
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.0041d410
mov al, 1
jmp 0x41ef45
push str.Reconnect_failed
lea ecx, [esp + 0x38]
call fcn.00405e70
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
mov dword [esp + 0x84], 1
call fcn.00405120
cmp dword [esp + 0x4c], 0x10
jb 0x41ef43
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00431ad1
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.0043236c
add esp, 0x68
ret 8