Function at 0x509090
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push 0xc90
push 0
push edi
call sub.MSVCR80.dll_memset
mov al, byte [esp + 0x20]
mov ebp, dword [sym.imp.MSVCR80.dll__errno]
lea esi, [edi + 0x560]
add esp, 0xc
mov byte [edi + 0xc8e], al
mov dword [esi], 0x10
call ebp
mov dword [eax], 0
movzx eax, byte [edi + 0xc8e]
push esi
lea ecx, [edi + 0x550]
push ecx
mov edx, eax
push 0
shl edx, 4
push 0x400
sub edx, eax
mov eax, dword [edx*4 + 0x5e96f0]
lea ebx, [edi + 4]
push ebx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [edi + 0x54c], eax
call ebp
mov esi, eax
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi], eax
cmp dword [edi + 0x54c], 0
jle 0x5095aa
cmp byte [ebx], 1
jne 0x5095aa
lea ebx, [edi + 0x20]
mov eax, 6
mov ecx, ebx
mov edx, 0x61802c
lea ecx, [ecx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x509148
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x509130
test eax, eax
je 0x5091a5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x509197
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x5091a5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x509197
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x5091a5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x509197
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x5091a5
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x5091a5
test esi, esi
mov eax, 1
jg 0x5091a7
or eax, 0xffffffff
jmp 0x5091a7
xor eax, eax
test eax, eax
je 0x5095aa
lea eax, [edi + 0x504]
push ebx
push eax
mov al, byte [edi + 6]
call fcn.00507530
mov edx, dword [edi + 0x54c]
lea esi, [edi + 0xf4]
lea ecx, [edx + esi - 0xf0]
add esp, 8
cmp esi, ecx
mov dword [esp + 0x14], ecx
jae 0x5093d2
mov al, byte [esi]
cmp al, 0xff
je 0x5093d2
movzx eax, al
cmp eax, 0x76
ja case.0x5091fe.1
movzx eax, byte [eax + 0x5095f4]
jmp dword [eax*4 + 0x5095b4]
add esi, 1
jmp 0x5093ca
xor eax, eax
cmp byte [esi + 1], al
jbe case.0x5091fe.1
jmp 0x509220
movzx ecx, byte [esi + eax + 2]
mov byte [ecx + edi + 0xa8c], 1
movzx edx, byte [esi + 1]
add eax, 1
cmp eax, edx
jl 0x509220
jmp case.0x5091fe.1
mov al, byte [esi + 2]
mov byte [edi + 0xc8c], al
jmp case.0x5091fe.1
mov ecx, dword [esi + 2]
mov dword [edi + 0x544], ecx
jmp case.0x5091fe.1
mov edx, dword [esi + 2]
push edx
call sub.WS2_32.dll_ntohl
mov dword [edi], eax
jmp case.0x5091fe.1
movzx eax, word [esi + 2]
push eax
call sub.WS2_32.dll_ntohs
mov word [edi + 0x564], ax
jmp case.0x5091fe.1
mov ecx, dword [esi + 2]
mov dword [edi + 0x548], ecx
jmp case.0x5091fe.1
cmp byte [esi + 1], 0
je case.0x5091fe.1
mov ebp, dword [sym.imp.MSVCR80.dll__stricmp]
lea ebx, [esi + 2]
push str._none_
push ebx
call ebp
add esp, 8
test eax, eax
je case.0x5091fe.1
push 0x5ef3e2
push ebx
call ebp
add esp, 8
test eax, eax
je case.0x5091fe.1
movzx edx, byte [esi + 1]
push edx
lea ebp, [edi + 0x404]
push ebx
push ebp
call sub.MSVCR80.dll_memcpy
movzx eax, byte [esi + 1]
add esp, 0xc
push 0x2e
mov byte [eax + edi + 0x404], 0
push ebp
mov byte [edi + 0x443], 0
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
test eax, eax
je case.0x5091fe.1
mov byte [eax], 0
jmp case.0x5091fe.1
movzx ecx, byte [esi + 1]
add ecx, 2
push ecx
lea edx, [edi + 0x876]
push esi
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp case.0x5091fe.1
movzx eax, byte [esi + 1]
add eax, 2
push eax
lea ecx, [edi + 0x978]
push esi
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp case.0x5091fe.1
movzx edx, byte [esi + 1]
add edx, 2
push edx
lea eax, [edi + 0x570]
push esi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp case.0x5091fe.1
movzx ecx, byte [esi + 1]
add ecx, 2
push ecx
lea edx, [edi + 0x672]
push esi
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp case.0x5091fe.1
movzx eax, byte [esi + 1]
add eax, 2
push eax
lea ecx, [edi + 0x774]
push esi
push ecx
call sub.MSVCR80.dll_memcpy
mov edx, dword [esi + 2]
add esp, 0xc
push edx
call sub.WS2_32.dll_ntohl
mov dword [edi + 0xa7c], eax
jmp case.0x5091fe.1
mov eax, dword [esi + 2]
push eax
call sub.WS2_32.dll_ntohl
mov dword [edi + 0xa88], eax
jmp case.0x5091fe.1
mov ecx, dword [esi + 2]
push ecx
call sub.WS2_32.dll_ntohl
mov dword [edi + 0xa84], eax
movzx edx, byte [esi + 1]
mov ecx, dword [esp + 0x14]
lea esi, [esi + edx + 2]
cmp esi, ecx
jb 0x5091e1
cmp dword [edi + 0xa7c], 0
jne 0x509405
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x5093ea
mov dword [edi + 0xa7c], eax
jmp 0x509405
movzx eax, byte [edi + 0xc8e]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov edx, dword [ecx*4 + 0x5e9704]
mov dword [edi + 0xa7c], edx
cmp word [edi + 0x564], 0
jne 0x509431
cmp byte [edi + 0xc8c], 0
jne 0x509428
mov ax, word [edi + 0x54c]
mov word [edi + 0x564], ax
jmp 0x509431
mov word [edi + 0x564], 0x400
cmp byte [0x617f22], 2
jb 0x509585
mov al, byte [edi + 0xc8c]
test al, al
jne 0x5094a5
mov eax, dword [edi + 0x1c]
test eax, eax
mov esi, 0x5e7b78
je 0x509472
call fcn.00507470
push eax
lea ecx, [edi + 0x404]
push ecx
lea eax, [edi + 0x504]
push eax
push str.BOOTPREQUEST_for__s___s__from_RelayAgent__s_received
jmp 0x50955c
movzx eax, byte [edi + 0xc8e]
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [edx*4 + 0x5e9704]
call fcn.00507470
push eax
lea eax, [edi + 0x404]
push eax
lea eax, [edi + 0x504]
push eax
push str.BOOTPREQUEST_for__s___s__from_interface__s_received
jmp 0x50955c
cmp al, 1
jne 0x509503
mov eax, dword [edi + 0x1c]
test eax, eax
mov esi, 0x5e7b78
je 0x5094d3
call fcn.00507470
push eax
lea ecx, [edi + 0x404]
push ecx
lea eax, [edi + 0x504]
push eax
push str.DHCPDISCOVER_for__s___s__from_RelayAgent__s_received
jmp 0x50955c
movzx eax, byte [edi + 0xc8e]
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [edx*4 + 0x5e9704]
call fcn.00507470
push eax
lea eax, [edi + 0x404]
push eax
lea eax, [edi + 0x504]
push eax
push str.DHCPDISCOVER_for__s___s__from_interface__s_received
jmp 0x50955c
cmp al, 3
jne 0x509585
mov eax, dword [edi + 0x1c]
test eax, eax
mov esi, 0x5e7b78
je 0x50952e
call fcn.00507470
push eax
lea ecx, [edi + 0x404]
push ecx
lea eax, [edi + 0x504]
push eax
push str.DHCPREQUEST_for__s___s__from_RelayAgent__s_received
jmp 0x50955c
movzx eax, byte [edi + 0xc8e]
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [edx*4 + 0x5e9704]
call fcn.00507470
push eax
lea eax, [edi + 0x404]
push eax
lea eax, [edi + 0x504]
push eax
push str.DHCPREQUEST_for__s___s__from_interface__s_received
push 0x5e7878
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x14
cmp byte [0x617f22], 2
jb 0x509585
push 0x5e7878
push 0x6180b8
call fcn.00435820
add esp, 8
push 0x310
lea eax, [edi + 0xf4]
push 0
push eax
mov dword [edi + 0x568], eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, 1
pop esi
pop ebp
pop ebx
pop ecx
ret
pop esi
pop ebp
xor ax, ax
pop ebx
pop ecx
ret