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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
mov eax, dword [0x42a2e4]
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
cmp esi, edi
mov dword [ebp - 0x198], eax
jl 0x409825
cmp esi, 0x7d4
jle 0x409645
cmp esi, 0x7d8
je 0x40961a
cmp esi, 0x7de
jne 0x409825
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.00411820
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, 0x434229
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], 0x426dcc
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1c0], esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
je 0x409608
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 0x409825
push 0
push 0
push ebx
push dword [0x43c550]
mov dword [0x43c580], 1
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
push str.Transfer_cancelled_by_user
call fcn.00408cd5
pop ecx
jmp 0x409825
push 0x43c568
call fcn.0040f29e
or dword [0x43c550], 0xffffffff
or dword [0x43c558], 0xffffffff
xor eax, eax
pop ecx
mov dword [0x43c564], 0xbb8
mov dword [0x43c580], eax
mov dword [0x43c584], eax
mov dword [0x43c560], eax
mov dword [0x43c55c], eax
mov dword [0x43c54c], eax
mov dword [0x43c548], eax
mov dword [0x43c578], eax
cmp dword [0x43c588], eax
jne 0x40969a
mov dword [0x43c57c], eax
push 0x43c598
call fcn.0040dfbc
pop ecx
mov ebx, 0x100
push ebx
cmp esi, edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0x434429
setne al
push 0x7d5
push dword [ebp - 0x198]
inc al
mov byte [0x434228], al
call esi
push ebx
push 0x434229
push 0x7d6
push dword [ebp - 0x198]
call esi
push ebx
mov ebx, dword [ebp - 0x198]
push 0x434329
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 [0x434429], 0
mov dword [0x43c544], eax
mov dword [0x43c584], 0x200
je 0x40980b
cmp byte [0x434229], 0
je 0x40980b
call fcn.00409335
test eax, eax
je 0x4097fd
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 - 0x8c]
push eax
call fcn.00408ed2
pop ecx
pop ecx
test eax, eax
je 0x4097fd
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 [0x43c564]
add ecx, 0x659
mov esi, ecx
push esi
push dword [ebp - 0x19c]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
push esi
push dword [ebp - 0x19c]
push dword [0x43c550]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
jmp 0x409825
push dword [0x43c558]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409825
push 0x10
push 0x4258cc
push str.Fields_Host_and_File_should_be_given.
push dword [ebp - 0x19c]
call fcn.0040c856
add esp, 0x10
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040e92f
leave
ret