Function at 0x408d82
Capabilities:
Get common file path
Get graphical window text
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x168]
sub esp, 0x1e8
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp + 0x164], eax
push ebx
push esi
movzx esi, word [ebp + 0x170]
mov ebx, ecx
push edi
push ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.USER32.dll_GetParent]
mov edi, 0x7d3
cmp esi, edi
mov dword [ebp - 0x24], eax
jl 0x409070
cmp esi, 0x7d4
jle 0x408ea5
cmp esi, 0x7d8
je 0x408e7a
cmp esi, 0x7de
jne 0x409070
lea eax, [ebp - 0x20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x58
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040ed00
xor eax, eax
mov word [ebp - 0x48], ax
mov word [ebp - 0x46], ax
add esp, 0xc
mov dword [ebp - 0x80], edi
lea eax, [ebp - 0x80]
mov edi, 0x432341
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], 0x100
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], str.Select_file
mov dword [ebp - 0x44], 0x4245ec
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x4c], esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
je 0x408e6b
push edi
push 0x7d6
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x409070
push 0
push 0
push ebx
push dword [0x43a668]
mov dword [0x43a698], 1
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
push str.Transfer_cancelled_by_user
call fcn.0040856f
pop ecx
jmp 0x409070
push 0x43a680
call fcn.0040e1ff
or dword [0x43a668], 0xffffffff
or dword [0x43a670], 0xffffffff
xor eax, eax
pop ecx
mov dword [0x43a67c], 0xbb8
mov dword [0x43a698], eax
mov dword [0x43a69c], eax
mov dword [0x43a678], eax
mov dword [0x43a674], eax
mov dword [0x43a664], eax
mov dword [0x43a660], eax
mov dword [0x43a690], eax
cmp dword [0x43a6a0], eax
jne 0x408efa
mov dword [0x43a694], eax
push 0x43a6b0
call fcn.0040d671
pop ecx
mov ebx, 0x100
push ebx
cmp esi, edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0x432541
setne al
push 0x7d5
push dword [ebp - 0x24]
inc al
mov byte [0x432340], al
call esi
push ebx
push 0x432341
push 0x7d6
push dword [ebp - 0x24]
call esi
push ebx
mov ebx, dword [ebp - 0x24]
push 0x432441
push 0x7e1
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x80
lea eax, [ebp + 0xe4]
push eax
push 0x7dd
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
push 0
push 0x7db
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemInt]
cmp byte [0x432541], 0
mov dword [0x43a65c], eax
mov dword [0x43a69c], 0x200
je 0x409059
cmp byte [0x432341], 0
je 0x409059
call fcn.00408bcf
test eax, eax
je 0x40904b
push 0
push 0
push 0xf0
push 0x7df
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
dec eax
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp + 0xe4]
push eax
call fcn.0040876c
pop ecx
pop ecx
test eax, eax
je 0x40904b
push 0
push 0x7d4
push ebx
call esi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0
push edi
push dword [ebp - 0x24]
call esi
push eax
call ebx
push 1
push 0x7d8
push dword [ebp - 0x24]
call esi
push eax
call ebx
movzx eax, word [ebp + 0x170]
xor ecx, ecx
cmp eax, edi
setne cl
push 0
push dword [0x43a67c]
add ecx, 0x659
mov esi, ecx
push esi
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
push esi
push dword [ebp - 0x28]
push dword [0x43a668]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
jmp 0x409070
push dword [0x43a670]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409070
push 0x10
push 0x422f98
push str.Fields_Host_and_File_should_be_given.
push dword [ebp - 0x28]
call fcn.0040bf40
add esp, 0x10
mov ecx, dword [ebp + 0x164]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040e1f0
add ebp, 0x168
leave
ret