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

Disassembly:
sub esp, 0x1f0
mov eax, dword [0x1001f048]
xor eax, esp
mov dword [esp + 0x1ec], eax
push ebx
push ebp
push esi
mov ebx, ecx
movzx ebp, dx
push edi
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
mov dword [esp + 0x10], esi
cmp ebp, 0x7d3
jl 0x1001009f
cmp ebp, 0x7d4
jle 0x1000febc
cmp ebp, 0x7d8
je 0x1000fe91
cmp ebp, 0x7de
jne 0x1001009f
lea eax, [esp + 0xf0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x58
pop ebp
push ebp
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
mov dword [esp + 0x28], ebx
add esp, 0xc
mov dword [esp + 0x50], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov ebx, 0x10027d21
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], pe_nt_image_headers32
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], str.Select_file
mov dword [esp + 0x58], 0x1001b87c
mov dword [esp + 0x5c], edi
mov dword [esp + 0x50], edi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
je 0x1000fe7e
push ebx
push 0x7d6
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea eax, [esp + 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x1001009f
xor edi, edi
mov dword [0x10030078], 1
push edi
push edi
push ebx
push dword [0x10030048]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
push str.Transfer_cancelled_by_user
call fcn.1000f573
pop ecx
jmp 0x1001009f
push 0x10030060
call dword [sym.imp.MSVCR120.dll__time64]
or dword [0x10030048], 0xffffffff
xor edi, edi
or dword [0x10030050], 0xffffffff
xor ecx, ecx
mov eax, dword [0x10030074]
cmp dword [0x10030080], ecx
mov dword [0x1003005c], 0xbb8
cmove eax, ecx
mov dword [0x10030078], edi
mov dword [0x1003007c], edi
mov dword [0x10030058], edi
mov dword [0x10030054], edi
mov dword [0x10030044], edi
mov dword [0x10030040], edi
mov dword [0x10030070], edi
mov dword [0x10030074], eax
mov dword [esp], 0x10030090
call fcn.10015129
mov dword [esp], pe_nt_image_headers32
cmp ebp, 0x7d3
push 0x10027f21
setne al
push 0x7d5
inc al
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov byte [0x10027d20], al
call esi
push pe_nt_image_headers32
push 0x10027d21
push 0x7d6
push dword [esp + 0x1c]
call esi
push pe_nt_image_headers32
push 0x10027e21
push 0x7e1
push dword [esp + 0x1c]
call esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x70]
push 0x80
push eax
push 0x7dd
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
push edi
push 0x7db
push esi
call dword [sym.imp.USER32.dll_GetDlgItemInt]
cmp byte [0x10027f21], 0
mov dword [0x1003003c], eax
mov dword [0x1003007c], 0x200
je 0x1001008a
cmp byte [0x10027d21], 0
je 0x1001008a
call fcn.1000fbcb
test eax, eax
je 0x1001007c
push edi
push edi
push 0xf0
push 0x7df
mov ebx, esi
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
dec eax
lea ecx, [esp + 0x70]
neg eax
sbb eax, eax
lea edx, [eax + 1]
call fcn.1000f761
test eax, eax
je 0x1001007c
push edi
push 0x7d4
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push edi
push 0x7d3
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 1
push 0x7d8
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
push dword [0x1003005c]
cmp ebp, 0x7d3
setne bl
add ebx, 0x659
push ebx
push esi
call dword [sym.imp.USER32.dll_SetTimer]
push 1
push ebx
push esi
push dword [0x10030048]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
jmp 0x1001009f
push dword [0x10030050]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001009f
push 0x10
push 0x100197c4
push str.Fields_Host_and_File_should_be_given.
push ebx
call fcn.10013740
add esp, 0x10
mov ecx, dword [esp + 0x1fc]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10015a21
add esp, 0x1f0
ret