Function at 0x4026c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0xe1c
mov eax, dword [0x4b3774]
xor eax, esp
mov dword [esp + 0xe14], eax
cmp byte [esp + 0xe24], 0
push ebx
push ebp
mov ebp, dword [esp + 0xe28]
push esi
push edi
push 0x400
mov ebx, ecx
push 0
jne 0x402749
mov esi, dword [ebx + 0x14]
lea eax, [esp + 0x68]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0x400
lea eax, [esp + 0x70]
push eax
push esi
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x402783
xor al, al
mov ecx, dword [esp + 0xe24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c614
add esp, 0xe1c
ret 8
mov esi, dword [ebx + 0x18]
lea ecx, [esp + 0x68]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0x400
lea ecx, [esp + 0x70]
push ecx
push esi
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x40272c
cmp byte [esp + 0x152], 0x61
jne 0x4028ba
cmp byte [esp + 0x153], 0x6d
jne 0x4028ba
cmp byte [esp + 0x154], 0x70
jne 0x4028ba
cmp byte [esp + 0x155], 0x78
jne 0x4028ba
cmp byte [esp + 0x156], 0x65
jne 0x4028ba
cmp byte [esp + 0xe34], 0
jne 0x4028ba
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jne 0x40280a
push str.255.255.255.255
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x28], eax
push 0x400
lea eax, [esp + 0x464]
push 0
push eax
call sub.MSVCR80.dll_memset
mov ebx, dword [ebx + 0x14]
mov dl, byte [0x4a621c]
add esp, 0xc
push 0x10
lea eax, [esp + 0x28]
push eax
mov ecx, 0x3c
lea esi, [esp + 0x68]
lea edi, [esp + 0x468]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.ampxe]
push 0
mov dword [esp + 0x55e], ecx
push 0x1f4
lea ecx, [esp + 0x470]
push ecx
push ebx
mov byte [esp + 0x568], 0xee
mov byte [esp + 0x569], 5
mov byte [esp + 0x56e], dl
mov byte [esp + 0x56f], 0xff
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x40272c
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0x244
add esi, 0xc
call fcn.00401270
mov edx, dword [esi]
add esp, 4
push eax
push str._s:__DP_Send_Packet_Error
push edi
call edx
add esp, 0xc
jmp 0x40272c
cmp dword [esp + 0x18], 0
jne 0x4028d0
push str.255.255.255.255
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x18], eax
lea esi, [esp + 0x38]
lea edx, [esp + 0x60]
call fcn.0040b7a0
cmp byte [esp + 0xe34], 0
jne 0x40291e
test al, al
je 0x40272c
cmp dword [esp + 0x3c], 1
jne 0x40272c
mov ecx, dword [esp + 0x40]
mov dx, word [esp + 0x44]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov esi, ebp
mov word [eax + 4], dx
call fcn.00403910
test al, al
je 0x402931
jmp 0x40272c
test al, al
je 0x40272c
cmp dword [esp + 0x3c], 3
jne 0x40272c
cmp byte [esp + 0x5c], 0
je 0x40272c
push 0x80
lea eax, [esp + 0xca4]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x38]
lea eax, [esp + 0xca0]
mov ecx, ebp
call fcn.00402c20
test al, al
jne 0x402970
mov byte [esp + 0xca0], al
cmp byte [esp + 0xe34], 0
mov ecx, dword [ebx + 8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], 0
jne 0x4029e5
push 1
push 2
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, 0x4a6410
lea edi, [esp + 0x874]
lea edx, [esp + 0xcb4]
call fcn.0040b9e0
test al, al
je 0x40272c
mov eax, dword [esp + 0x10]
mov ebx, dword [ebx + 0x14]
push 0x10
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov ecx, edi
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x402c0b
jmp 0x40272c
push 0x3f
lea edx, [esp + 0xc65]
push 0
push edx
mov byte [esp + 0xc6c], 0
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x44]
add esp, 0xc
sub eax, 1
je 0x402a54
sub eax, 2
jne 0x40272c
mov eax, dword [ebp + 0x44]
cmp eax, 1
je 0x402a20
cmp eax, 2
jne 0x402a8f
mov eax, dword [str.msefi64ms64bcd]
mov ecx, dword [0x4a6424]
mov edx, dword [0x4a6428]
mov dword [esp + 0xc60], eax
mov eax, dword [0x4a642c]
mov dword [esp + 0xc64], ecx
mov dword [esp + 0xc68], edx
mov dword [esp + 0xc6c], eax
jmp 0x402a8f
cmp dword [ebp + 0x44], 1
jne 0x402a8f
mov ecx, dword [str.msbios_bcd]
mov edx, dword [0x4a6418]
mov ax, word [0x4a641c]
mov dword [esp + 0xc60], ecx
mov cl, byte [0x4a641e]
mov dword [esp + 0xc64], edx
mov word [esp + 0xc68], ax
mov byte [esp + 0xc6a], cl
push 1
push 5
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0xc74]
lea edi, [esp + 0x874]
lea edx, [esp + 0xcb4]
call fcn.0040b9e0
test al, al
je 0x40272c
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov eax, ebp
call fcn.00403290
test al, al
jne 0x402af6
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
push eax
push 0
push 0
push 0
push 0
push 0x102
call ecx
jmp 0x40272c
mov eax, dword [esp + 0x10]
mov ebx, dword [ebx + 0x18]
push 0x10
lea edx, [esp + 0x18]
push edx
xor edi, edi
push edi
push eax
lea ecx, [esp + 0x870]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x40272c
mov edx, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
push edx
push edi
push edi
push edi
lea eax, [esp + 0x28]
push eax
push 0x105
call ecx
push 0xfe
lea edx, [esp + 0xd26]
push edi
push edx
mov word [esp + 0xd2c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push 0x7e
lea edx, [esp + 0xca6]
push edi
push edx
mov esi, eax
mov word [esp + 0xcac], di
call sub.MSVCR80.dll_memset
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402b90
push 0x40
lea ecx, [esp + 0xca4]
push ecx
sub eax, edx
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call sub.Comn.dll_GetObjectLang
movzx ecx, word [esp + 0x30]
lea edx, [esp + 0xca0]
push edx
movzx edx, word [esp + 0x32]
push ecx
movzx ecx, word [esp + 0x34]
push edx
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx]
push str.60000
call eax
push eax
lea ecx, [esp + 0xd34]
push 0x80
push ecx
call dword [sym.imp.MSVCR80.dll_swprintf_s]
mov edx, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
add esp, 0x1c
push edx
push edi
push edi
push edi
lea eax, [esp + 0xd30]
push eax
push 0x100
call ecx
mov al, 1
jmp 0x40272e