Function at 0x4023e0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4122cc]
push ebx
push ebp
mov ebp, dword [esp + 0x118]
xor edx, edx
push esi
mov ecx, dword [ebp + 0xec]
push edi
cmp ecx, eax
mov dword [esp + 0x14], edx
jne 0x40248b
cmp ecx, eax
jne 0x402469
xor eax, eax
mov cl, byte [eax + ebp + 0xf0]
cmp cl, 0x35
je 0x40243c
test cl, cl
jne 0x402427
mov ecx, 1
jmp 0x402433
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, 2
add eax, ecx
cmp eax, 0x4c3
jl 0x402410
cmp eax, 0x4c4
jge 0x402469
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, eax
cmp ecx, 0x4c6
jge 0x402469
lea eax, [eax + ebp + 0xf2]
test eax, eax
je 0x402469
xor edx, edx
mov dl, byte [eax]
mov dword [esp + 0x14], edx
mov eax, dword [0x415210]
inc eax
mov dword [0x415210], eax
and eax, reloc.WSOCK32.dll_closesocket
jns 0x402480
dec eax
or eax, 0xfffffffc
inc eax
jne 0x40248b
mov edx, 4
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40249f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
xor ecx, ecx
mov eax, 0x412030
mov dword [esp + 0x10], ecx
cmp edx, dword [eax]
je 0x4024b9
add eax, 8
inc ecx
cmp eax, 0x412078
jl 0x4024aa
xor eax, eax
lea edi, [ebp + 0x1c]
mov al, byte [ebp + 2]
mov dword [esp + 0x10], ecx
cmp eax, 0x10
mov dword [esp + 0x18], edi
jle 0x4024d3
mov eax, 0x10
test eax, eax
mov esi, 0x414fec
jle 0x4024f9
mov ebx, eax
xor eax, eax
mov al, byte [edi]
inc edi
push eax
push str._02X:
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add esi, 3
dec ebx
jne 0x4024de
mov byte [esi - 1], 0
mov edx, dword [ebp + 0xc]
lea esi, [ebp + 0xc]
push 0x414fec
push edx
call sub.WSOCK32.dll_inet_ntoa
mov ebx, dword [esp + 0x12c]
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax*8 + 0x412034]
push ecx
push str.Rcvd__s_Msg_for_IP__s__Mac__s
push 0
push ebx
push 5
call fcn.00407550
mov eax, dword [0x415024]
add esp, 0x1c
test eax, eax
je 0x402b5a
mov eax, dword [esp + 0x14]
cmp eax, 7
ja case.0x402550.2
mov edx, eax
jmp dword [edx*4 + 0x402b6c]
mov eax, dword [ebp + 0xec]
mov ecx, dword [0x4122cc]
cmp eax, ecx
jne 0x4025d7
xor eax, eax
mov cl, byte [eax + ebp + 0xf0]
cmp cl, 0x32
je 0x402595
test cl, cl
jne 0x402580
mov ecx, 1
jmp 0x40258c
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, 2
add eax, ecx
cmp eax, 0x4c3
jl 0x402569
cmp eax, 0x4c4
jge 0x4025d7
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, eax
cmp ecx, 0x4c6
jge 0x4025d7
lea eax, [eax + ebp + 0xf2]
test eax, eax
je 0x4025d7
mov eax, dword [eax]
push eax
mov dword [esi], eax
call sub.WSOCK32.dll_inet_ntoa
push eax
push str.Client_requested_address__s
push 0
push ebx
push 5
call fcn.00407550
add esp, 0x14
mov eax, dword [esp + 0x18]
xor edx, edx
mov dl, byte [ebp + 2]
push edx
push eax
push esi
push ebx
call fcn.004017f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x402610
push str.no_more_address_or_address_previously_allocated_by_another_server
push eax
push ebx
push 1
call fcn.00407550
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov ecx, dword [ebp + 0xec]
mov eax, dword [0x4122cc]
cmp ecx, eax
mov edi, str.DHCP
je 0x402629
mov edi, str.BOOTP
mov edx, dword [esi]
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
push edi
push str._s:_proposed_address__s
push 0
push ebx
push 2
call fcn.00407550
add esp, 0x18
mov byte [ebp], 2
mov eax, dword [esi]
lea ecx, [ebp + 0x6c]
push 0x80
push 0x415034
push ecx
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 2
push ebp
call fcn.00401ee0
mov edx, dword [esp + 0x12c]
add esp, 8
mov dword [edx], eax
jmp case.0x402550.2
xor ecx, ecx
mov cl, byte [ebp + 2]
cmp ecx, 0x10
mov dword [esp + 0x10], ecx
jb 0x402692
mov ecx, 0x10
mov dword [esp + 0x10], ecx
mov edx, dword [0x414fe8]
xor eax, eax
test edx, edx
jle case.0x402550.2
mov edx, dword [0x414fe0]
jmp 0x4026ae
mov ecx, dword [esp + 0x10]
mov esi, dword [edx]
mov edi, dword [esp + 0x18]
add esi, 4
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4026d0
mov ecx, dword [0x414fe8]
inc eax
add edx, 4
cmp eax, ecx
jl 0x4026aa
jmp case.0x402550.2
cmp eax, dword [0x414fe8]
jge case.0x402550.2
mov ecx, dword [0x414fe0]
mov edi, dword [ecx + eax*4]
test edi, edi
je case.0x402550.2
mov eax, dword [ebp + 0xec]
mov ecx, dword [0x4122cc]
cmp eax, ecx
mov edx, 1
jne 0x40279a
xor eax, eax
mov cl, byte [eax + ebp + 0xf0]
cmp cl, 0x36
je 0x402734
test cl, cl
jne 0x40271f
mov ecx, 1
jmp 0x40272b
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, 2
add eax, ecx
cmp eax, 0x4c3
jl 0x402708
cmp eax, 0x4c4
jge 0x40279a
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, eax
cmp ecx, 0x4c6
jge 0x40279a
lea eax, [eax + ebp + 0xf2]
test eax, eax
je 0x40279a
mov esi, dword [eax]
lea edx, [esp + 0x1c]
push 0x100
push edx
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x402798
lea eax, [esp + 0x1c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x402798
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x402798
mov eax, dword [ecx]
test eax, eax
je 0x402798
cmp dword [eax], esi
je 0x4027c3
mov eax, dword [ecx + 4]
add ecx, 4
test eax, eax
jne 0x40278a
xor edx, edx
mov ecx, dword [0x4122cc]
mov eax, dword [ebp + 0xec]
cmp eax, ecx
jne 0x402811
xor eax, eax
mov cl, byte [eax + ebp + 0xf0]
cmp cl, 0x32
je 0x4027df
test cl, cl
jne 0x4027ca
mov ecx, 1
jmp 0x4027d6
mov edx, 1
jmp 0x40279a
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, 2
add eax, ecx
cmp eax, 0x4c3
jl 0x4027ac
cmp eax, 0x4c4
jge 0x402811
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, eax
cmp ecx, 0x4c6
jge 0x402811
lea eax, [eax + ebp + 0xf2]
test eax, eax
je 0x402811
mov eax, dword [eax]
mov ecx, dword [edi]
xor edx, edx
cmp ecx, eax
sete dl
jmp 0x402815
mov eax, dword [esp + 0x10]
test edx, edx
je 0x402871
lea edx, [edi + 0x18]
push edx
call fcn.0040a446
mov eax, dword [esp + 0x12c]
push str.Previously_allocated_address_acked
push 0
push eax
push 5
call fcn.00407550
add esp, 0x14
mov byte [ebp], 2
mov ecx, dword [edi]
lea edx, [ebp + 0x6c]
push 0x80
push 0x415034
push edx
mov dword [ebp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 5
push ebp
call fcn.00401ee0
mov ecx, dword [esp + 0x12c]
add esp, 8
mov dword [ecx], eax
jmp case.0x402550.2
push eax
call sub.WSOCK32.dll_inet_ntoa
mov edx, dword [esp + 0x128]
push eax
push str.Client_requested_address__s_which_was_not_allocated_by_tftpd32
push 0
push edx
push 5
call fcn.00407550
add esp, 0x14
mov dword [edi + 0x18], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
xor ebx, ebx
mov bl, byte [ebp + 2]
cmp ebx, 0x10
jb 0x4028b4
mov ebx, 0x10
mov ecx, dword [0x414fe8]
xor eax, eax
test ecx, ecx
jle case.0x402550.2
mov edx, dword [0x414fe0]
mov esi, dword [edx]
mov edi, dword [esp + 0x18]
add esi, 4
mov ecx, ebx
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x4028ee
mov ecx, dword [0x414fe8]
inc eax
add edx, 4
cmp eax, ecx
jl 0x4028ca
jmp case.0x402550.2
cmp eax, dword [0x414fe8]
jge case.0x402550.2
mov ecx, dword [0x414fe0]
mov eax, dword [ecx + eax*4]
test eax, eax
je case.0x402550.2
mov dword [eax], 0xffffffff
mov edx, dword [0x414fe8]
mov eax, dword [0x414fe0]
push 0x401770
push 4
push edx
push eax
call fcn.0040a522
mov eax, dword [0x414fe8]
mov ecx, dword [0x414fe0]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
dec eax
mov edi, 0x414fec
mov dword [0x414fe8], eax
mov ebp, 6
mov esi, dword [ecx + eax*4]
add esi, 4
xor eax, eax
mov al, byte [esi]
inc esi
push eax
push str._02X:
push edi
call ebx
add esp, 0xc
add edi, 3
dec ebp
jne 0x402954
mov edx, dword [0x414fe8]
mov eax, dword [0x414fe0]
mov byte [edi - 1], 0
push 0x414fec
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_inet_ntoa
mov ecx, dword [0x414fe4]
push eax
mov eax, dword [0x414fe8]
push eax
push str.Freeing_item__d_:__s__s
push 0
push ecx
push 5
call fcn.00407550
mov edx, dword [0x414fe8]
mov eax, dword [0x414fe0]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0040a6f0
mov edx, dword [esp + 0x148]
push str.item_destroyed
push 0
push edx
push 5
call fcn.00407550
add esp, 0x30
jmp case.0x402550.2
xor ecx, ecx
mov cl, byte [ebp + 2]
cmp ecx, 0x10
mov dword [esp + 0x10], ecx
jb 0x4029ef
mov ecx, 0x10
mov dword [esp + 0x10], ecx
mov edx, dword [0x414fe8]
xor eax, eax
test edx, edx
jle case.0x402550.2
mov edx, dword [0x414fe0]
jmp 0x402a0b
mov ecx, dword [esp + 0x10]
mov esi, dword [edx]
mov edi, dword [esp + 0x18]
add esi, 4
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x402a2a
mov ecx, dword [0x414fe8]
inc eax
add edx, 4
cmp eax, ecx
jl 0x402a07
jmp case.0x402550.2
cmp eax, dword [0x414fe8]
jge case.0x402550.2
mov ecx, dword [0x414fe0]
mov eax, dword [ecx + eax*4]
xor ecx, ecx
cmp eax, ecx
je case.0x402550.2
mov edi, dword [esp + 0x18]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
xor eax, eax
mov al, byte [ebp + 2]
cmp eax, 0x10
jle 0x402a5a
mov eax, 0x10
cmp eax, ecx
mov esi, 0x414fec
jle 0x402a82
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
xor eax, eax
mov al, byte [edi]
inc edi
push eax
push str._02X:
push esi
call ebp
add esp, 0xc
add esi, 3
dec ebx
jne 0x402a6b
mov edx, dword [esp + 0x128]
push 0x414fec
push str.item__s_released
push 0
push edx
push 5
mov byte [esi - 1], 0
call fcn.00407550
add esp, 0x14
lea eax, [esp + 0x14]
push eax
call fcn.0040a446
mov eax, dword [0x414fe8]
add esp, 4
xor ebp, ebp
test eax, eax
jle 0x402b5a
mov ecx, dword [0x414fe0]
mov dword [esp + 0x10], 0x412318
mov eax, dword [ecx + ebp*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x402ae0
mov dword [esp + 0x10], 0x412314
lea edi, [eax + 4]
mov esi, 0x414fec
mov ebx, 6
xor eax, eax
mov al, byte [edi]
inc edi
push eax
push str._02X:
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add esi, 3
dec ebx
jne 0x402aed
mov edx, dword [0x414fe0]
mov ecx, dword [esp + 0x10]
mov byte [esi - 1], 0
push ecx
mov eax, dword [edx + ebp*4]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax]
sub edx, ecx
push edx
push 0x414fec
push eax
call sub.WSOCK32.dll_inet_ntoa
mov ecx, dword [esp + 0x134]
push eax
push ebp
push str.Item__d:_IP__s__Mac__s__Age__d_sec___s
push 0
push ecx
push 0xf
call fcn.00407550
mov eax, dword [0x414fe8]
add esp, 0x24
inc ebp
cmp ebp, eax
jl 0x402ac0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret