Function at 0x4012b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4cf0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x14c], ecx
jmp 0x4012e2
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x12c], 0
mov eax, 2
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x14c]
add ecx, 0x162c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 1
push 1
push 1
push 1
push 1
push 0xe
mov ecx, 0x4d2a70
call fcn.0041fe30
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
mov edx, dword [ebp - 0x14c]
add edx, 0x162c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
lea eax, [ebp - 0x134]
push eax
push 0
call sub.IPHLPAPI.DLL_GetIpAddrTable
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00474b6a
add esp, 4
mov edx, dword [ebp - 0x14c]
mov dword [edx + 0xc], eax
push 1
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx + 0xc]
push edx
call sub.IPHLPAPI.DLL_GetIpAddrTable
mov dword [ebp - 0x130], eax
mov ecx, 0x4d2a70
call fcn.0041fb20
movzx eax, al
test eax, eax
jne 0x4013cf
push 0
push 1
push 1
push 1
push 1
push 1
push 0xe
mov ecx, 0x4d2a70
call fcn.0041fe30
push eax
mov ecx, 0x4d2a70
call fcn.0041fbb0
cmp dword [ebp - 0x130], 0
jne 0x40179a
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x140], 0
jmp 0x401401
mov ecx, dword [ebp - 0x140]
add ecx, 1
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x140]
cmp ecx, dword [eax]
jae 0x401788
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
push 0
mov edx, dword [ebp - 0x140]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x14c]
lea ecx, [eax + edx + 0x10]
push ecx
call fcn.00474130
add esp, 0xc
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x140]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x140]
mov esi, dword [ebp - 0x14c]
mov eax, dword [eax + ecx + 4]
mov dword [esi + edx*4 + 0x15f0], eax
mov ecx, dword [ebp - 0x14c]
add ecx, 0x162c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + edx*4 + 0x15f0]
push ecx
push 1
push 1
push 1
movzx edx, word [ebp - 0x140]
push edx
push 0xd
mov ecx, 0x4d2a70
call fcn.0041fe30
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x14c]
mov dx, word [ebp - 0x140]
mov word [ecx + eax*2 + 0x1618], dx
mov eax, dword [ebp - 0x14c]
add eax, 0x162c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x140]
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx + ecx*4 + 0x15f0]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.WS2_32.dll_inet_ntoa
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x138]
push eax
call fcn.00474a90
add esp, 4
add eax, 2
push eax
mov ecx, dword [ebp - 0x140]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x14c]
lea eax, [edx + ecx + 0x10]
push eax
call fcn.00474a28
add esp, 0xc
push 0x49938c
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.004749a0
add esp, 8
test eax, eax
jne 0x401554
jmp 0x4013f2
push str.0.0.0.0
mov edx, dword [ebp - 0x138]
push edx
call fcn.004749a0
add esp, 8
test eax, eax
jne 0x401571
jmp 0x4013f2
push str.192.168
mov eax, dword [ebp - 0x138]
push eax
call fcn.004049f0
add esp, 8
test eax, eax
jne 0x40158e
jmp 0x4013f2
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
push 0x14
push 0
lea edx, [ebp - 0x128]
push edx
call fcn.00474130
add esp, 0xc
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea edx, [ebp - 0x128]
push edx
call fcn.00474a28
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call fcn.00474a90
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x4015f0
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 1
jbe 0x401633
mov edx, dword [ebp - 0x18]
movsx eax, byte [ebp + edx - 0x128]
cmp eax, 0x2e
jne 0x401631
push 0x4993a8
push 0x4993ac
call fcn.00474a90
add esp, 4
add eax, 2
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ebp + ecx - 0x127]
push edx
call fcn.00474a28
add esp, 0xc
jmp 0x401633
jmp 0x4015e7
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x14c]
call fcn.0040def0
movzx ecx, al
test ecx, ecx
je 0x401652
mov byte [ebp - 0x19], 1
jmp 0x401656
mov byte [ebp - 0x19], 0
mov ecx, 0x4d2a70
call fcn.0041fb20
movzx edx, al
test edx, edx
jne 0x4016f7
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x4016f7
push 8
call fcn.00474930
add esp, 4
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x14c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140]
mov edx, dword [ebp - 0x14c]
lea eax, [edx + ecx*2 + 0x1618]
mov ecx, dword [ebp - 0x12c]
mov dword [ecx + 4], eax
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x12c]
push eax
push 0x401880
push 0
push 0
call fcn.00474865
add esp, 0x18
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x4016f7
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, byte [ebp - 0x19]
test edx, edx
je 0x401783
push 8
call fcn.00474930
add esp, 4
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x14c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x14c]
lea edx, [ecx + eax*4 + 0x15f0]
mov eax, dword [ebp - 0x12c]
mov dword [eax + 4], edx
lea ecx, [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp - 0x12c]
push edx
push 0x4174b0
push 0
push 0
call fcn.00474865
add esp, 0x18
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x401783
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4013f2
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx + 0xc]
push edx
call fcn.004746d6
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.00474130
add esp, 0xc
push 0x4993b0
push 0x4993d0
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.00474a28
add esp, 0xc
push 0xa
lea edx, [ebp - 0xa8]
push edx
call fcn.00474a90
add esp, 4
lea eax, [ebp + eax - 0xa8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004745e3
add esp, 0xc
push 0x4993f0
push 0x499400
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea edx, [ebp - 0xa8]
push edx
call fcn.00474a90
add esp, 4
lea eax, [ebp + eax - 0xa8]
push eax
call fcn.00474a28
add esp, 0xc
lea ecx, [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14c]
mov edx, dword [eax + 0x10]
call edx
jmp 0x401869
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474590
mov esp, ebp
pop ebp
ret