Function at 0x4038f7
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 0x1b0], ebx
mov ax, word [0x447b94]
cmp ax, bx
jne 0x40392f
mov eax, 0xbb2
jmp 0x403932
movzx eax, ax
push eax
push 2
push 0x42f610
push str.127.0.0.1
call fcn.0040f913
add esp, 0x10
mov dword [0x434334], eax
cmp eax, 0xffffffff
jne 0x403963
call esi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x434334]
mov ecx, edi
inc edi
cmp ecx, 3
jg 0x403970
cmp eax, 0xffffffff
je 0x40391d
cmp eax, 0xffffffff
je 0x403b03
push str.connected_to_console_n
call fcn.00410209
mov dword [esp], 0x42f664
mov edi, 0x447a68
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp - 0x1b0]
push eax
push 0x1000c
push 0xf3271
push dword [0x434334]
call fcn.00410578
mov edi, eax
add esp, 0x14
cmp edi, 1
je 0x403abc
mov dword [ebp - 0x1ac], 0x80
call esi
mov ebx, eax
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x1a8]
push eax
push dword [0x434334]
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 edi, 0xfffffff0
je 0x403a89
cmp edi, 0xfffffff1
je 0x403a4a
cmp edi, 0xfffffffe
je 0x403a34
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004104c7
push eax
call esi
push eax
push str.socket_error__d:_n_s
lea eax, [ebp - 0x128]
jmp 0x403a7d
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 0x403aa2
mov eax, dword [ebp - 0x1b0]
cmp eax, 0x10000
jge 0x403a5e
push str.Tftpd32_is_running_as_a_service_n_nUse_Tftpd32_gui.exe_in_order_to_monitor_it_ninstead_of_tftp32.exe
jmp 0x403a39
and eax, 0xffff
push 0xc
push eax
cmp eax, 0xc
lea eax, [ebp - 0x128]
jle 0x403a78
push str.Background_service_version_is__d_nwhich_is_more_recent_than_current_console___d_
jmp 0x403a7d
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 0x403aa2
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 0x42f804
lea eax, [ebp - 0x128]
push eax
push 0
call fcn.0040fb1c
add esp, 0x10
jmp 0x403b20
push str.GUI_Version_check_OK_n
call fcn.00410209
push 0x6e
push ebx
call fcn.00401cc1
call fcn.00401a4e
call fcn.00401a23
mov esi, dword [0x434334]
push str.Requesting_Running_Services_n
call fcn.00410209
push 0x444ff6
xor eax, eax
push 0xd9
push esi
inc eax
call section..text
xor eax, eax
add esp, 0x1c
inc eax
jmp 0x403b22
call fcn.004104c7
push eax
call esi
push eax
push ebx
push 0x42f630
push str.Cant_connect_to_the_service_nError__d___s_
push ebx
call fcn.0040fb1c
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret