Function at 0x402690
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
sub esp, 0xa24
mov eax, dword [0x4c3740]
xor eax, esp
mov dword [esp + 0xa1c], eax
mov eax, dword [esp + 0xa28]
push ebx
mov bl, byte [esp + 0xa30]
test bl, bl
push ebp
push esi
push edi
mov edi, ecx
push 0x400
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edi
push 0
jne 0x402728
mov esi, dword [edi + 0x14]
lea ecx, [esp + 0x470]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x5c]
push eax
push 0
push 0x400
lea ecx, [esp + 0x478]
push ecx
push esi
mov dword [esp + 0x30], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x402768
xor al, al
mov ecx, dword [esp + 0xa2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00437634
add esp, 0xa24
ret 8
mov esi, dword [edi + 0x18]
lea edx, [esp + 0x470]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x5c]
push ecx
push 0
push 0x400
lea edx, [esp + 0x478]
push edx
push esi
mov dword [esp + 0x30], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x40270b
cmp dword [esp + 0x5c], 0
jne 0x40277e
push str.255.255.255.255
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x5c], eax
lea esi, [esp + 0x30]
lea edx, [esp + 0x468]
call fcn.00408a70
test bl, bl
jne 0x4027cb
test al, al
je 0x40270b
cmp dword [esp + 0x34], 1
jne 0x40270b
mov ebx, dword [esp + 0x38]
mov bp, word [esp + 0x3c]
mov esi, dword [esp + 0x14]
sub esp, 8
mov eax, esp
mov dword [eax], ebx
mov word [eax + 4], bp
call fcn.00403d80
test al, al
je 0x4027e7
jmp 0x40270b
test al, al
je 0x40270b
cmp dword [esp + 0x34], 3
jne 0x40270b
mov bp, word [esp + 0x3c]
mov ebx, dword [esp + 0x38]
cmp byte [esp + 0x54], 0
je 0x40270b
push 0x80
lea eax, [esp + 0x8ac]
push 0
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x30]
lea eax, [esp + 0x8a8]
call fcn.00402eb0
test al, al
je 0x40270b
cmp byte [esp + 0xa3c], 0
mov esi, dword [edi + 8]
jne 0x402a77
push 0x400
lea ecx, [esp + 0x6c]
push 0
push ecx
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x4c]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
or dword [esp + 0x7c], 0x800000
add esp, 0xc
push esi
mov byte [esp + 0x6c], 2
mov byte [esp + 0x6d], 1
mov byte [esp + 0x6e], 6
mov byte [esp + 0x6f], 0
mov dword [esp + 0x70], edx
call edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], ebx
mov word [esp + 0x88], bp
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x8a8]
mov byte [esp + eax + 0xd4], cl
add eax, 1
test cl, cl
jne 0x402890
movzx ecx, byte [0x4b2f5c]
mov al, 0x63
mov byte [esp + 0x154], al
mov byte [esp + 0x157], al
mov eax, dword [str.ampxe]
push esi
mov byte [esp + 0x159], 0x82
mov byte [esp + 0x15a], 0x53
mov byte [esp + 0x15c], 0xee
mov byte [esp + 0x15d], 5
mov dword [esp + 0x15e], eax
mov byte [esp + 0x162], cl
mov byte [esp + 0x163], 0x35
mov byte [esp + 0x164], 1
mov byte [esp + 0x165], 2
mov byte [esp + 0x166], 0x36
mov byte [esp + 0x167], 4
call edi
movzx ecx, byte [0x4b3714]
mov edx, dword [str.PXEClient]
mov dword [esp + 0x164], eax
mov eax, dword [0x4b3710]
mov dword [esp + 0x16e], eax
xor eax, eax
mov dword [esp + 0x16a], edx
mov byte [esp + 0x172], cl
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x168], 0x3c
mov byte [esp + 0x169], 9
lea edi, [esp + 0x173]
mov eax, 0x10
lea ecx, [esp + 0x44]
lea edx, [esp + 0x20]
mov edi, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x402998
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x402980
test eax, eax
je 0x4029f5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x4029e7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4029f5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x4029e7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4029f5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x4029e7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4029f5
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x4029f5
test esi, esi
mov eax, 1
jg 0x4029f7
or eax, 0xffffffff
jmp 0x4029f7
xor eax, eax
test eax, eax
je 0x402a3e
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x176], eax
mov eax, dword [esp + 0x50]
mov byte [esp + 0x173], 0x61
mov byte [esp + 0x174], 0x11
mov dword [esp + 0x17a], ecx
mov dword [esp + 0x17e], edx
mov dword [esp + 0x182], eax
lea edi, [esp + 0x186]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x14]
push 0x10
mov byte [edi], 0xff
lea ecx, [esp + 0x6c]
sub edi, ecx
lea edx, [esp + 0x5c]
push edx
push 0
add edi, 1
mov ecx, edi
push ecx
lea ecx, [esp + 0x78]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x402e9b
jmp 0x40270b
push 0x3f
lea edx, [esp + 0x86d]
push 0
push edx
mov byte [esp + 0x874], 0
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x3c]
mov ecx, 1
add esp, 0xc
sub eax, ecx
je 0x402ae7
sub eax, 2
jne 0x40270b
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x44], ecx
jne 0x402b24
mov ecx, dword [str.msefi64ms64bcd]
mov edx, dword [0x4b3164]
mov eax, dword [0x4b3168]
mov dword [esp + 0x868], ecx
mov ecx, dword [0x4b316c]
mov dword [esp + 0x86c], edx
mov dword [esp + 0x870], eax
mov dword [esp + 0x874], ecx
jmp 0x402b24
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x44], ecx
jne 0x402b24
mov eax, dword [str.msbios_bcd]
mov ecx, dword [0x4b3158]
mov dx, word [0x4b315c]
mov dword [esp + 0x868], eax
mov al, byte [0x4b315e]
mov dword [esp + 0x86c], ecx
mov word [esp + 0x870], dx
mov byte [esp + 0x872], al
push 0x400
lea ecx, [esp + 0x6c]
push 0
push ecx
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x4c]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
or dword [esp + 0x7c], 0x800000
add esp, 0xc
push esi
mov byte [esp + 0x6c], 2
mov byte [esp + 0x6d], 1
mov byte [esp + 0x6e], 6
mov byte [esp + 0x6f], 0
mov dword [esp + 0x70], edx
call edi
mov word [esp + 0x88], bp
mov dword [esp + 0x7c], eax
xor ebp, ebp
mov dword [esp + 0x84], ebx
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x8a8]
mov byte [esp + eax + 0xd4], cl
add eax, 1
test cl, cl
jne 0x402b80
movzx edx, byte [0x4b2f5c]
mov ecx, dword [str.ampxe]
mov al, 0x63
mov byte [esp + 0x154], al
mov byte [esp + 0x157], al
mov al, 5
push esi
mov byte [esp + 0x159], 0x82
mov byte [esp + 0x15a], 0x53
mov byte [esp + 0x15c], 0xee
mov byte [esp + 0x15d], al
mov dword [esp + 0x15e], ecx
mov byte [esp + 0x162], dl
mov byte [esp + 0x163], 0x35
mov byte [esp + 0x164], 1
mov byte [esp + 0x165], al
mov byte [esp + 0x166], 0x36
mov byte [esp + 0x167], 4
call edi
movzx edx, byte [0x4b3714]
mov ecx, dword [0x4b3710]
mov dword [esp + 0x164], eax
mov eax, dword [str.PXEClient]
mov dword [esp + 0x16a], eax
xor eax, eax
mov dword [esp + 0x16e], ecx
mov byte [esp + 0x172], dl
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x168], 0x3c
mov byte [esp + 0x169], 9
lea edi, [esp + 0x173]
mov eax, 0x10
lea ecx, [esp + 0x44]
lea edx, [esp + 0x20]
nop
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x402c88
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x402c70
cmp eax, ebp
je 0x402ce5
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x402cd7
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x402ce5
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x402cd7
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x402ce5
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x402cd7
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x402ce5
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x402ce5
cmp esi, ebp
mov eax, 1
jg 0x402ce7
or eax, 0xffffffff
jmp 0x402ce7
xor eax, eax
cmp eax, ebp
je 0x402d2e
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x176], ecx
mov ecx, dword [esp + 0x50]
mov byte [esp + 0x173], 0x61
mov byte [esp + 0x174], 0x11
mov dword [esp + 0x17a], edx
mov dword [esp + 0x17e], eax
mov dword [esp + 0x182], ecx
lea edi, [esp + 0x186]
lea eax, [esp + 0x868]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402d38
sub eax, edx
je 0x402d66
mov byte [edi], 0xfc
add edi, 1
push eax
lea edx, [esp + 0x86c]
mov byte [edi], 0x1e
push edx
add edi, 1
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add edi, 0x1e
mov edx, dword [esp + 0x5c]
mov byte [edi], 0xff
lea eax, [esp + 0x68]
sub edi, eax
push edx
add edi, 1
call dword [sym.imp.WS2_32.dll_ntohl]
mov ebx, dword [esp + 0x14]
push eax
mov eax, ebx
call fcn.00403710
test al, al
jne 0x402da4
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x3c]
push eax
push ebp
push ebp
push ebp
push ebp
push 0x102
call ecx
jmp 0x40270b
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x18]
push 0x10
lea ecx, [esp + 0x5c]
push ecx
push ebp
push edi
lea edx, [esp + 0x78]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x40270b
push 0xfe
lea eax, [esp + 0x92e]
push ebp
push eax
mov word [esp + 0x934], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x5c]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push 0x7e
mov esi, eax
lea eax, [esp + 0x8ae]
push ebp
push eax
mov word [esp + 0x8b4], bp
call sub.MSVCR80.dll_memset
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402e20
push 0x40
lea ecx, [esp + 0x8ac]
push ecx
sub eax, edx
push eax
push esi
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call sub.Comn.dll_GetObjectLang
movzx ecx, word [esp + 0x2c]
lea edx, [esp + 0x8a8]
push edx
movzx edx, word [esp + 0x2e]
push ecx
movzx ecx, word [esp + 0x30]
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 + 0x93c]
push 0x80
push ecx
call dword [sym.imp.MSVCR80.dll_swprintf_s]
mov edx, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x3c]
add esp, 0x1c
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x938]
push eax
push 0x100
call ecx
mov al, 1
jmp 0x40270d