Function at 0x4dc5c0
Capabilities:
Create thread
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518641
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x54f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x4c], 5
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.00505400
test al, al
je 0x4dca68
push 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x4dca68
push dword [ebp - 0x4c]
push ebx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x4dca68
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4dca68
push dword [ebp - 0x1e]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebp - 0x50], eax
mov dword [0x5515c4], eax
test eax, eax
je 0x4dca72
push str.msxml6.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov byte [ebp - 4], 1
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x4dcab1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
push 0x11
push 1
push 3
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push str.PHDWinEcoEngine._d._d._d
push eax
call fcn.0040a480
add esp, 0x14
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x4dcabb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x38]
push dword [0x5515c4]
push 0x5275d0
push eax
call fcn.0040a480
mov eax, dword [ebp - 0x38]
add esp, 0xc
add eax, 0xfffffff0
mov dword [ebp - 0x54], eax
push 0
push ecx
mov esi, esp
mov dword [ebp - 0x44], esp
push eax
mov dword [ebp - 0x30], esi
call fcn.00403870
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.TCP_Port
call fcn.00403420
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x3c]
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x30], esi
push eax
mov dword [ebp - 0x30], eax
call fcn.00403870
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
call fcn.0043c720
add esp, 0x10
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x4dcac5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push 0x11
push 1
push 3
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push str.EcoEngine._d._d._d
push eax
call fcn.0040a480
mov esi, dword [ebp - 0x28]
add esp, 0x14
push esi
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x4dc7c8
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push 0
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x4dc9eb
nop
push 0x68
call fcn.00443e65
mov ebx, eax
add esp, 4
mov dword [ebp - 0x60], ebx
mov byte [ebp - 4], 7
mov eax, dword [0x54fae4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x4dcab1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx + 0x18], eax
mov byte [ebp - 4], 8
mov dword [ebx + 0x1c], edi
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x4dcab1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx + 0x24], eax
mov byte [ebp - 4], 9
lea edi, [ebx + 0x3c]
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x28], eax
mov dword [ebp - 0x2c], edi
push 0x20
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00443e65
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov byte [ebp - 4], 0xb
lea edi, [ebx + 0x60]
mov byte [ebx + 0x54], 0
mov dword [ebx + 0x5c], 0xffffffff
mov dword [ebp - 0x2c], edi
push 0x18
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00443e65
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
mov edi, dword [ebp - 0x40]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x44]
push 0x34
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x54], 0
mov dword [ebx + 0x58], edi
call fcn.00443e65
add esp, 4
mov dword [ebp - 0x64], eax
push ebx
push 0x4e1cb0
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.0043cd50
push ebx
mov dword [ebx + 0x50], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
inc edi
mov dword [ebx + 0x2c], 0xffffffff
push 0x5515a0
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00402560
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + 0xd], 0
jne 0x4dc952
mov eax, dword [ebp - 0x24]
cmp eax, dword [ecx + 0x10]
jge 0x4dc9b5
cmp dword [edi + 4], 0xaaaaaaa
je 0x4dcacf
mov eax, dword [ebp - 0x34]
mov edi, dword [edi]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0xe
push 0x18
mov dword [ebp - 0x58], 0
call fcn.00443e65
mov byte [ebp - 4], 6
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x58], 0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0
mov dword [eax], edi
push eax
push dword [ebp - 0x18]
mov dword [eax + 4], edi
push dword [ebp - 0x1c]
mov dword [eax + 8], edi
mov edi, dword [ebp - 0x34]
mov ecx, edi
mov word [eax + 0xc], 0
call fcn.00402100
mov ecx, eax
push 0x5515a0
mov dword [ecx + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push 0
push 0x4dc2b0
call fcn.0044d973
add esp, 0xc
push 0
push 0
push dword [ebp - 0x48]
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x24], eax
test eax, eax
jg 0x4dc7e0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.tcp.Accept_returned_error
push 0xbd
push str.Scheduler::Run
push 0x525dcc
push 0
push 4
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
add esp, 0x1c
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4dca32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x54]
mov eax, esi
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4dca4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4dca95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4dca95
mov dword [0x5515c4], 0xffffffff
push str.Unable_to_open_TCP_socket
push 0x99
push str.Scheduler::Run
push 0x525dcc
push 0
push 4
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443e26
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404320
push 0x80004005
call fcn.00404320
push 0x80004005
call fcn.00404320
call fcn.00402be0
int3