Function at 0x404030
Capabilities:
Check os version
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 0xf0
mov esi, ecx
push 0x529
push esi
mov dword [ebp - 0x6b4], esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, 1
jne 0x404090
mov ebx, esi
call fcn.004016cc
test eax, eax
je 0x404662
push 0
push 0
push 0x8071
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x6b0]
push eax
push 0x517
push dword [ebp - 0x6b4]
mov ecx, 0x160
mov esi, 0x447620
lea edi, [ebp - 0x6b0]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push ebx
push ebx
mov edi, 0xf0
push edi
push 0x527
push dword [ebp - 0x6b4]
mov dword [ebp - 0x4e8], ebx
call esi
cmp eax, 1
jne 0x4040eb
or dword [ebp - 0x4e8], eax
push ebx
push ebx
push edi
push 0x528
push dword [ebp - 0x6b4]
call esi
cmp eax, 1
jne 0x404107
or dword [ebp - 0x4e8], 2
push ebx
push ebx
push edi
push 0x52a
push dword [ebp - 0x6b4]
call esi
cmp eax, 1
jne 0x404123
or dword [ebp - 0x4e8], 8
push ebx
push ebx
push edi
push 0x529
push dword [ebp - 0x6b4]
call esi
cmp eax, 1
jne 0x40413f
or dword [ebp - 0x4e8], 4
push ebx
push ebx
push edi
push 0x52c
push dword [ebp - 0x6b4]
call esi
cmp eax, 1
jne 0x40415b
or dword [ebp - 0x4e8], 0x20
push ebx
push ebx
push edi
push 0x52b
push dword [ebp - 0x6b4]
call esi
cmp eax, 1
jne 0x404177
or dword [ebp - 0x4e8], 0x10
push ebx
push ebx
push edi
push 0x52d
push dword [ebp - 0x6b4]
call esi
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x24c], eax
je 0x4041bf
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x4041bf
push 0x30
push 0x42e888
push str.IPv6_not_correctly_supported_under_nWindows_XP_and_Windows_Server_2003
push dword [ebp - 0x6b4]
call fcn.0040fb1c
add esp, 0x10
mov dword [ebp - 0x24c], ebx
push ebx
push ebx
push edi
push 0x526
push dword [ebp - 0x6b4]
call esi
cmp eax, 1
jne 0x4041f3
push 0x104
lea eax, [ebp - 0x3d8]
push eax
push 0x548
push dword [ebp - 0x6b4]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
jmp 0x4041f9
mov byte [ebp - 0x3d8], bl
push ebx
push ebx
push edi
push 0x54a
push dword [ebp - 0x6b4]
call esi
push ebx
dec eax
push ebx
neg eax
push edi
sbb eax, eax
push 0x57c
push dword [ebp - 0x6b4]
inc eax
mov dword [ebp - 0x2d4], eax
call esi
cmp eax, 1
jne 0x404269
push 0x28
lea eax, [ebp - 0x294]
push eax
push 0x57d
push dword [ebp - 0x6b4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x294]
push 0x20
push eax
mov byte [ebp - 0x26d], bl
call fcn.004129a0
pop ecx
pop ecx
cmp eax, ebx
je 0x40426f
mov byte [eax], bl
jmp 0x40426f
mov byte [ebp - 0x294], bl
push ebx
push ebx
push edi
push 0x57b
push dword [ebp - 0x6b4]
call esi
push ebx
dec eax
push ebx
neg eax
push edi
sbb eax, eax
push 0x57e
push dword [ebp - 0x6b4]
inc eax
mov dword [ebp - 0x2a4], eax
call esi
push ebx
dec eax
push ebx
neg eax
push edi
sbb eax, eax
push 0x57f
push dword [ebp - 0x6b4]
inc eax
mov dword [ebp - 0x29c], eax
call esi
push ebx
dec eax
push ebx
neg eax
push edi
sbb eax, eax
push 0x50a
push dword [ebp - 0x6b4]
inc eax
mov dword [ebp - 0x298], eax
call esi
cmp eax, 1
jne 0x4042e0
mov dword [ebp - 0x59c], ebx
jmp 0x40431f
push ebx
push ebx
push edi
push 0x50d
push dword [ebp - 0x6b4]
call esi
cmp eax, 1
jne 0x404301
mov dword [ebp - 0x59c], 3
jmp 0x40431f
push ebx
push ebx
push edi
push 0x50c
push dword [ebp - 0x6b4]
call esi
dec eax
neg eax
sbb eax, eax
add eax, 2
mov dword [ebp - 0x59c], eax
push ebx
push ebx
push 0x518
push dword [ebp - 0x6b4]
call dword [sym.imp.USER32.dll_GetDlgItemInt]
push ebx
push ebx
push 0x519
push dword [ebp - 0x6b4]
mov dword [ebp - 0x5a8], eax
call dword [sym.imp.USER32.dll_GetDlgItemInt]
push ebx
push ebx
push 0x51a
push dword [ebp - 0x6b4]
mov dword [ebp - 0x5a4], eax
call dword [sym.imp.USER32.dll_GetDlgItemInt]
push ebx
push ebx
push edi
push 0x51b
push dword [ebp - 0x6b4]
mov dword [ebp - 0x598], eax
call esi
push ebx
dec eax
push ebx
neg eax
push edi
sbb eax, eax
push 0x51e
push dword [ebp - 0x6b4]
inc eax
mov dword [ebp - 0x594], eax
call esi
dec eax
push ebx
neg eax
push ebx
sbb eax, eax
push 0x51c
push dword [ebp - 0x6b4]
inc eax
mov dword [ebp - 0x588], eax
call dword [sym.imp.USER32.dll_GetDlgItemInt]
push ebx
push ebx
push edi
push 0x51d
push dword [ebp - 0x6b4]
mov dword [ebp - 0x5a0], eax
call esi
push ebx
dec eax
push ebx
neg eax
push edi
sbb eax, eax
push 0x51f
push dword [ebp - 0x6b4]
inc eax
mov dword [ebp - 0x590], eax
call esi
push ebx
dec eax
push ebx
neg eax
push edi
sbb eax, eax
push 0x533
push dword [ebp - 0x6b4]
inc eax
mov dword [ebp - 0x584], eax
call esi
dec eax
neg eax
sbb eax, eax
inc eax
push ebx
mov dword [ebp - 0x580], eax
push ebx
push edi
push 0x523
push dword [ebp - 0x6b4]
call esi
push ebx
dec eax
push ebx
neg eax
push edi
sbb eax, eax
push 0x524
push dword [ebp - 0x6b4]
inc eax
mov dword [ebp - 0x578], eax
call esi
push ebx
dec eax
push ebx
neg eax
push edi
sbb eax, eax
push 0x546
push dword [ebp - 0x6b4]
inc eax
mov dword [ebp - 0x574], eax
call esi
push ebx
dec eax
push ebx
neg eax
push edi
sbb eax, eax
push 0x532
push dword [ebp - 0x6b4]
inc eax
mov dword [ebp - 0x570], eax
call esi
push ebx
dec eax
push ebx
neg eax
push edi
mov edi, dword [ebp - 0x6b4]
sbb eax, eax
push 0x521
inc eax
push edi
mov dword [ebp - 0x58c], eax
call esi
cmp eax, 1
jne 0x4044b6
push 0x84
lea eax, [ebp - 0x56c]
push eax
push 0x522
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4044bc
mov byte [ebp - 0x56c], bl
push 0x20
lea eax, [ebp - 0x24]
push eax
push 0x549
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea eax, [ebp - 0x4e0]
push eax
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x24]
push 0x42e8d8
push eax
call fcn.00411e1c
add esp, 0x10
cmp eax, 2
je 0x404522
lea eax, [ebp - 0x4e0]
push eax
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x24]
push str._d__d
push eax
call fcn.00411e1c
add esp, 0x10
cmp eax, 2
je 0x404522
mov dword [ebp - 0x4e0], ebx
mov dword [ebp - 0x4e4], ebx
cmp dword [ebp - 0x5a8], ebx
je 0x40464d
cmp dword [ebp - 0x5a4], ebx
je 0x40464d
cmp dword [ebp - 0x598], ebx
je 0x40464d
call fcn.004019bd
test eax, eax
jne 0x4045b2
lea eax, [ebp - 0x6b0]
push eax
call fcn.0041069c
pop ecx
test eax, eax
je 0x4045c2
push 0xfb0
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push ebx
lea eax, [ebp - 0x130]
push eax
push 0x104
lea eax, [ebp - 0x6b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.00405bce
pop ecx
pop ecx
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push ebx
push 0x806f
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4045d7
push 0x30
push 0x42e930
push str.TFTP:_Can_not_change_directory
push edi
call fcn.0040fb1c
add esp, 0x10
mov eax, dword [0x447a84]
cmp eax, dword [ebp - 0x24c]
jne 0x404621
mov eax, dword [0x447738]
cmp eax, dword [ebp - 0x598]
jne 0x404621
mov eax, dword [0x4477e8]
cmp eax, dword [ebp - 0x4e8]
jne 0x404621
mov eax, dword [0x44773c]
cmp eax, dword [ebp - 0x594]
jne 0x404621
lea eax, [ebp - 0x56c]
push eax
push 0x447764
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x404636
push 0x30
push 0x42e958
push str.You_have_to_restart_Tftpd32_nin_order_to_apply_the_new_settings
push edi
call fcn.0040fb1c
add esp, 0x10
mov ecx, 0x160
lea esi, [ebp - 0x6b0]
mov edi, 0x447620
xor eax, eax
rep movsd dword es:[edi], dword [esi]
inc eax
jmp 0x404664
push 0x30
push 0x42e8e8
push str.TFTP:_Timeouts_and_Ports_should_be_numerical_and_can_not_be_0
push edi
call fcn.0040fb1c
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret