Function at 0x403396
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x1b0], edi
mov ax, word [0x445050]
cmp ax, di
jne 0x4033ce
mov eax, 0xbb2
jmp 0x4033d1
movzx eax, ax
push eax
push 2
push 0x42cd1c
push str.127.0.0.1
call fcn.0040de77
add esp, 0x10
mov dword [0x431934], eax
cmp eax, 0xffffffff
jne 0x403402
call esi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x431934]
mov ecx, ebx
inc ebx
cmp ecx, 3
jg 0x40340f
cmp eax, 0xffffffff
je 0x4033bc
cmp eax, 0xffffffff
je 0x4035fc
push str.connected_to_console_n
call fcn.0040e70d
mov dword [esp], 0x42cd70
mov edi, 0x444f24
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp - 0x1b0]
push eax
push 0x1000c
push 0xf3271
push dword [0x431934]
call fcn.0040ea7c
xor edi, edi
mov ebx, eax
inc edi
add esp, 0x14
cmp ebx, edi
je 0x403560
mov dword [ebp - 0x1ac], 0x80
call esi
mov edi, eax
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x1a8]
push eax
push dword [0x431934]
call dword [sym.imp.WS2_32.dll_getpeername]
push 8
push 0x20
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push dword [ebp - 0x1ac]
lea eax, [ebp - 0x1a8]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
cmp ebx, 0xfffffff0
je 0x40352a
cmp ebx, 0xfffffff1
je 0x4034eb
cmp ebx, 0xfffffffe
je 0x4034d5
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0040e9cb
push eax
call esi
push eax
push str.socket_error__d:_n_s
lea eax, [ebp - 0x128]
jmp 0x40351e
push str.Timeout_waiting_for_service_to_answer
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
jmp 0x403543
mov eax, dword [ebp - 0x1b0]
cmp eax, 0x10000
jge 0x4034ff
push str.Tftpd32_is_running_as_a_service_n_nUse_Tftpd32_gui.exe_in_order_to_monitor_it_ninstead_of_tftp32.exe
jmp 0x4034da
and eax, 0xffff
push 0xc
push eax
cmp eax, 0xc
lea eax, [ebp - 0x128]
jle 0x403519
push str.Background_service_version_is__d_nwhich_is_more_recent_than_current_console___d_
jmp 0x40351e
push str.Background_service_version_is__d_nwhich_is_older_than_current_console___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x403543
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x128]
push str.Bad_Password_:_Port__d_was_not_used_nby_a_valid_Tftpd32_application_or_service
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push 0x42ce74
lea eax, [ebp - 0x128]
push eax
push 0
call fcn.0040e080
add esp, 0x10
jmp 0x403619
push str.GUI_Version_check_OK_n
call fcn.0040e70d
push 0x6e
xor ebx, ebx
push ebx
call fcn.004019e4
mov esi, dword [0x431934]
push str.GUI_Ask_TFTP_settings_n
call fcn.0040e70d
push 0x442904
push 0xcf
push esi
mov eax, edi
call section..text
push 0x68
push ebx
call fcn.004019e4
mov esi, dword [0x431934]
push str.GUI_Ask_DHCP_settings_n
call fcn.0040e70d
push 0x442903
push 0xce
push esi
mov eax, edi
call section..text
push 0x69
push ebx
call fcn.004019e4
mov esi, dword [0x431934]
push str.Requesting_Running_Services_n
call fcn.0040e70d
add esp, 0x40
push 0x442906
push 0xd6
push esi
mov eax, edi
call section..text
push 0x6c
push ebx
call fcn.004019e4
add esp, 0x14
mov eax, edi
jmp 0x40361b
call fcn.0040e9cb
push eax
call esi
push eax
push edi
push 0x42cd3c
push str.Cant_connect_to_the_service_nError__d___s_
push edi
call fcn.0040e080
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffa3
leave
ret