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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
movzx esi, word [ebp + 8]
mov ebx, ecx
push edi
push ebx
mov dword [ebp - 0x19c], ebx
call dword [sym.imp.USER32.dll_GetParent]
mov edi, 0x7d3
mov dword [ebp - 0x198], eax
cmp esi, edi
jl 0x406505
cmp esi, 0x7d4
jle 0x406321
cmp esi, 0x7d8
je 0x4062f6
cmp esi, 0x7de
jne 0x406505
lea eax, [ebp - 0x194]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x58
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x1f4]
push esi
push eax
call fcn.00412af0
xor eax, eax
mov word [ebp - 0x1bc], ax
mov word [ebp - 0x1ba], ax
add esp, 0xc
mov dword [ebp - 0x1f4], edi
lea eax, [ebp - 0x1f4]
mov edi, 0x431a59
push eax
mov dword [ebp - 0x1f0], ebx
mov dword [ebp - 0x1ec], esi
mov dword [ebp - 0x1e8], esi
mov dword [ebp - 0x1e4], esi
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1dc], esi
mov dword [ebp - 0x1d8], edi
mov dword [ebp - 0x1d4], 0x100
mov dword [ebp - 0x1c8], esi
mov dword [ebp - 0x1c4], str.Select_file
mov dword [ebp - 0x1b8], 0x42b674
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1c0], esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
je 0x4062e4
push edi
push 0x7d6
push dword [ebp - 0x198]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x406505
push 0
push 0
push ebx
push dword [0x439df4]
mov dword [0x439e28], 1
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
push str.Transfer_cancelled_by_user
call fcn.004058f3
pop ecx
jmp 0x406505
push 0x439e10
call fcn.004109eb
or dword [0x439df4], 0xffffffff
or dword [0x439dfc], 0xffffffff
xor eax, eax
pop ecx
mov dword [0x439e08], 0xbb8
mov dword [0x439e28], eax
mov dword [0x439e2c], eax
mov dword [0x439e04], eax
mov dword [0x439e00], eax
mov dword [0x439df0], eax
mov dword [0x439dec], eax
mov dword [0x439e20], eax
cmp dword [0x439e30], eax
jne 0x406376
mov dword [0x439e24], eax
push 0x439e40
call fcn.0040ecd8
pop ecx
mov ebx, 0x100
push ebx
cmp esi, edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0x431c59
setne al
push 0x7d5
push dword [ebp - 0x198]
inc al
mov byte [0x431a58], al
call esi
push ebx
push 0x431a59
push 0x7d6
push dword [ebp - 0x198]
call esi
push ebx
mov ebx, dword [ebp - 0x198]
push 0x431b59
push 0x7e1
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x80
lea eax, [ebp - 0x8c]
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 [0x431c59], 0
mov dword [0x439de8], eax
mov dword [0x439e2c], 0x200
je 0x4064eb
cmp byte [0x431a59], 0
je 0x4064eb
call fcn.00406010
test eax, eax
je 0x4064dd
push 0
push 0
push pe_nt_image_headers32
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 - 0x8c]
push eax
call fcn.00405c6a
pop ecx
pop ecx
test eax, eax
je 0x4064dd
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 - 0x198]
call esi
push eax
call ebx
push 1
push 0x7d8
push dword [ebp - 0x198]
call esi
push eax
call ebx
movzx eax, word [ebp + 8]
xor ecx, ecx
cmp eax, edi
setne cl
push 0
push dword [0x439e08]
lea esi, [ecx + 0x659]
push esi
push dword [ebp - 0x19c]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
push esi
push dword [ebp - 0x19c]
push dword [0x439df4]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406505
push dword [0x439dfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406505
push 0x10
push 0x42b61c
push str.Fields_Host_and_File_should_be_given.
push dword [ebp - 0x19c]
call fcn.0040e080
add esp, 0x10
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040ffa3
leave
ret