Function at 0x402500
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x10c
mov eax, dword [0x415324]
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 + 0x18], edx
jne 0x402585
cmp ecx, eax
jne 0x402585
xor eax, eax
mov cl, byte [eax + ebp + 0xf0]
cmp cl, 0x35
je 0x402558
test cl, cl
jne 0x402543
mov ecx, 1
jmp 0x40254f
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, 2
add eax, ecx
cmp eax, 0x4c3
jl 0x40252c
cmp eax, 0x4c4
jge 0x402585
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, eax
cmp ecx, 0x4c6
jge 0x402585
lea eax, [eax + ebp + 0xf2]
test eax, eax
je 0x402585
xor edx, edx
mov dl, byte [eax]
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x402599
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
xor ecx, ecx
mov eax, 0x415030
mov dword [esp + 0x10], ecx
cmp edx, dword [eax]
je 0x4025b3
add eax, 8
inc ecx
cmp eax, 0x415078
jb 0x4025a4
xor eax, eax
lea edi, [ebp + 0x1c]
mov al, byte [ebp + 2]
mov dword [esp + 0x10], ecx
cmp eax, 0x10
mov dword [esp + 0x14], edi
jle 0x4025cd
mov eax, 0x10
test eax, eax
mov esi, 0x41a6ec
jle 0x4025f3
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 0x4025d8
mov byte [esi - 1], 0
mov edx, dword [ebp + 0xc]
lea esi, [ebp + 0xc]
push 0x41a6ec
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 + 0x415034]
push ecx
push str.Rcvd__s_Msg_for_IP__s__Mac__s
push 0
push ebx
push 5
call fcn.00408200
mov eax, dword [0x41a724]
add esp, 0x1c
test eax, eax
jne 0x402644
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
mov eax, dword [esp + 0x18]
cmp eax, 7
ja case.0x402653.2
mov edx, eax
jmp dword [edx*4 + 0x402c80]
mov eax, dword [ebp + 0xec]
mov ecx, dword [0x415324]
cmp eax, ecx
jne 0x4026da
xor eax, eax
mov cl, byte [eax + ebp + 0xf0]
cmp cl, 0x32
je 0x402698
test cl, cl
jne 0x402683
mov ecx, 1
jmp 0x40268f
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, 2
add eax, ecx
cmp eax, 0x4c3
jl 0x40266c
cmp eax, 0x4c4
jge 0x4026da
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, eax
cmp ecx, 0x4c6
jge 0x4026da
lea eax, [eax + ebp + 0xf2]
test eax, eax
je 0x4026da
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.00408200
add esp, 0x14
mov eax, dword [esp + 0x14]
xor edx, edx
mov dl, byte [ebp + 2]
push edx
push eax
push esi
push ebx
call fcn.00401710
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x402713
push str.no_more_address_or_address_previously_allocated_by_another_server
push eax
push ebx
push 1
call fcn.00408200
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 [0x415324]
cmp ecx, eax
mov edi, 0x415618
je 0x40272c
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.00408200
add esp, 0x18
mov byte [ebp], 2
mov eax, dword [esi]
lea ecx, [ebp + 0x6c]
push 0x80
push 0x41a734
push ecx
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 2
push ebp
call fcn.00401f00
mov edx, dword [esp + 0x12c]
add esp, 8
mov dword [edx], eax
jmp case.0x402653.2
xor ecx, ecx
mov cl, byte [ebp + 2]
cmp ecx, 0x10
mov dword [esp + 0x10], ecx
jb 0x402795
mov ecx, 0x10
mov dword [esp + 0x10], ecx
mov edx, dword [0x41a6e8]
xor eax, eax
test edx, edx
jle 0x4027ec
mov edx, dword [0x41a6e0]
jmp 0x4027ad
mov ecx, dword [esp + 0x10]
mov esi, dword [edx]
mov edi, dword [esp + 0x14]
add esi, 4
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4027d7
mov ecx, dword [0x41a6e8]
inc eax
add edx, 4
cmp eax, ecx
jl 0x4027a9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
cmp eax, dword [0x41a6e8]
jge 0x4027ec
mov ecx, dword [0x41a6e0]
mov edi, dword [ecx + eax*4]
test edi, edi
jne 0x4027f9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
mov eax, dword [ebp + 0xec]
mov ecx, dword [0x415324]
cmp eax, ecx
mov edx, 1
jne 0x4028a6
xor eax, eax
mov cl, byte [eax + ebp + 0xf0]
cmp cl, 0x36
je 0x402840
test cl, cl
jne 0x40282b
mov ecx, 1
jmp 0x402837
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, 2
add eax, ecx
cmp eax, 0x4c3
jl 0x402814
cmp eax, 0x4c4
jge 0x4028a6
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, eax
cmp ecx, 0x4c6
jge 0x4028a6
lea eax, [eax + ebp + 0xf2]
test eax, eax
je 0x4028a6
mov esi, dword [eax]
lea edx, [esp + 0x1c]
push 0x100
push edx
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x4028a4
lea eax, [esp + 0x1c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4028a4
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4028a4
mov eax, dword [ecx]
test eax, eax
je 0x4028a4
cmp dword [eax], esi
je 0x4028cf
mov eax, dword [ecx + 4]
add ecx, 4
test eax, eax
jne 0x402896
xor edx, edx
mov ecx, dword [0x415324]
mov eax, dword [ebp + 0xec]
cmp eax, ecx
jne 0x40291d
xor eax, eax
mov cl, byte [eax + ebp + 0xf0]
cmp cl, 0x32
je 0x4028eb
test cl, cl
jne 0x4028d6
mov ecx, 1
jmp 0x4028e2
mov edx, 1
jmp 0x4028a6
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, 2
add eax, ecx
cmp eax, 0x4c3
jl 0x4028b8
cmp eax, 0x4c4
jge 0x40291d
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, eax
cmp ecx, 0x4c6
jge 0x40291d
lea eax, [eax + ebp + 0xf2]
test eax, eax
je 0x40291d
mov eax, dword [eax]
mov ecx, dword [edi]
xor edx, edx
cmp ecx, eax
sete dl
jmp 0x402921
mov eax, dword [esp + 0x10]
test edx, edx
je 0x402990
mov ecx, dword [edi + 0x14]
lea eax, [edi + 0x14]
test ecx, ecx
jne 0x402938
push eax
call fcn.0040b12b
add esp, 4
lea edx, [edi + 0x18]
push edx
call fcn.0040b12b
mov eax, dword [esp + 0x12c]
push str.Previously_allocated_address_acked
push 0
push eax
push 5
call fcn.00408200
add esp, 0x14
mov byte [ebp], 2
mov ecx, dword [edi]
lea edx, [ebp + 0x6c]
push 0x80
push 0x41a734
push edx
mov dword [ebp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 5
push ebp
call fcn.00401f00
mov ecx, dword [esp + 0x12c]
add esp, 8
mov dword [ecx], eax
jmp case.0x402653.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.00408200
add esp, 0x14
mov dword [edi + 0x18], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
xor ecx, ecx
mov cl, byte [ebp + 2]
cmp ecx, 0x10
mov dword [esp + 0x10], ecx
jb 0x4029db
mov ecx, 0x10
mov dword [esp + 0x10], ecx
mov edx, dword [0x41a6e8]
xor eax, eax
test edx, edx
jle case.0x402653.2
mov edx, dword [0x41a6e0]
jmp 0x4029f7
mov ecx, dword [esp + 0x10]
mov esi, dword [edx]
mov edi, dword [esp + 0x14]
add esi, 4
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x402a19
mov ecx, dword [0x41a6e8]
inc eax
add edx, 4
cmp eax, ecx
jl 0x4029f3
jmp case.0x402653.2
cmp eax, dword [0x41a6e8]
jge case.0x402653.2
mov ecx, dword [0x41a6e0]
xor esi, esi
mov edx, dword [ecx + eax*4]
cmp edx, esi
je case.0x402653.2
mov eax, dword [ebp + 0xec]
mov ecx, dword [0x415324]
cmp eax, ecx
jne case.0x402653.2
xor eax, eax
mov cl, byte [eax + ebp + 0xf0]
cmp cl, 0x32
je 0x402a7a
test cl, cl
jne 0x402a65
mov ecx, 1
jmp 0x402a71
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, 2
add eax, ecx
cmp eax, 0x4c3
jl 0x402a4e
cmp eax, 0x4c4
jge case.0x402653.2
xor ecx, ecx
mov cl, byte [eax + ebp + 0xf1]
add ecx, eax
cmp ecx, 0x4c6
jge case.0x402653.2
lea ebp, [eax + ebp + 0xf2]
cmp ebp, esi
je case.0x402653.2
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], esi
mov edx, dword [esp + 0x128]
push str.item_destroyed
push esi
push edx
push 5
call fcn.00408200
add esp, 0x10
jmp case.0x402653.2
xor ecx, ecx
mov cl, byte [ebp + 2]
cmp ecx, 0x10
mov dword [esp + 0x10], ecx
jb 0x402ae5
mov ecx, 0x10
mov dword [esp + 0x10], ecx
mov edx, dword [0x41a6e8]
xor eax, eax
test edx, edx
jle case.0x402653.2
mov edx, dword [0x41a6e0]
jmp 0x402b01
mov ecx, dword [esp + 0x10]
mov esi, dword [edx]
mov edi, dword [esp + 0x14]
add esi, 4
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x402b20
mov ecx, dword [0x41a6e8]
inc eax
add edx, 4
cmp eax, ecx
jl 0x402afd
jmp case.0x402653.2
cmp eax, dword [0x41a6e8]
jge case.0x402653.2
mov ecx, dword [0x41a6e0]
mov eax, dword [ecx + eax*4]
xor ecx, ecx
cmp eax, ecx
je case.0x402653.2
mov edi, dword [esp + 0x14]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
xor eax, eax
mov al, byte [ebp + 2]
cmp eax, 0x10
jle 0x402b50
mov eax, 0x10
cmp eax, ecx
mov esi, 0x41a6ec
jle 0x402b78
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 0x402b61
mov edx, dword [esp + 0x128]
push 0x41a6ec
push str.item__s_released
push 0
push edx
push 5
mov byte [esi - 1], 0
call fcn.00408200
add esp, 0x14
lea eax, [esp + 0x14]
push eax
call fcn.0040b12b
mov eax, dword [0x41a6e8]
add esp, 4
xor ebp, ebp
test eax, eax
jle 0x402c50
mov ecx, dword [0x41a6e0]
mov dword [esp + 0x10], 0x415370
mov eax, dword [ecx + ebp*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x402bd6
mov dword [esp + 0x10], 0x41536c
lea edi, [eax + 4]
mov esi, 0x41a6ec
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 0x402be3
mov edx, dword [0x41a6e0]
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 0x41a6ec
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.00408200
mov eax, dword [0x41a6e8]
add esp, 0x24
inc ebp
cmp ebp, eax
jl 0x402bb6
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402c6f
cmp eax, 1
je 0x402c6f
cmp eax, 3
je 0x402c6f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret