Function at 0xd282f00
Capabilities:
Get common file path
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0xd2b0418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push esi
call dword [sym.imp.USER32.dll_GetWindow]
push 8
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov eax, ecx
sub eax, 0x10
je 0xd28317f
sub eax, 0x100
je 0xd28313e
sub eax, 1
je 0xd282fdd
test edi, edi
je 0xd283198
cmp ecx, dword [edi + 4]
jne 0xd283198
push 8
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0xd283198
mov ebx, dword [eax + 4]
mov eax, dword [edi]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [edi]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
push 0
push 0xc
push 0x480
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [ebx + 0xa8], 0x16
jne 0xd283198
push 0x410
push esi
call edi
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0xd282fd4
or dword [ebx + 0x50], 1
jmp 0xd283198
and dword [ebx + 0x50], 0xfffffffe
jmp 0xd283198
mov ecx, dword [ebp + 0x10]
movzx eax, cx
sub eax, 0x440
je 0xd28312c
sub eax, 0x20
je 0xd283114
sub eax, 0x20
jne 0xd283198
shr ecx, 0x10
cmp ecx, 0x300
jne 0xd283198
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0x480
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xd283040
sub eax, edx
sar eax, 1
cmp eax, 5
ja 0xd283082
push 2
lea eax, [ebp - 0x20c]
push 0xd2720c0
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0xd283082
push 1
push 1
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0xd283198
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0d29dcc0
test eax, eax
je 0xd283101
mov ebx, dword [sym.imp.msvcrt.dll__wchdir]
lea edx, [ebp - 0x20c]
push edx
call ebx
lea eax, [ebp - 0x20c]
push eax
call ebx
add esp, 8
neg eax
sbb eax, eax
inc eax
push eax
push 1
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x440
push esi
call edi
push eax
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.0d29f910
lea eax, [ebp - 0x414]
push eax
push 0
push 0xc
push 0x440
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0xd283198
push 0
push 1
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0xd283198
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 0x10
push 0x480
push esi
mov edx, 0x440
call fcn.0d280aa0
jmp 0xd283198
push esi
call fcn.0d280b10
push 8
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0xd28315d
push esi
call fcn.0d29dc60
jmp 0xd283198
push edi
push 8
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x40]
push 0xd2720d0
mov dword [edi], edx
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [edi + 4], eax
jmp 0xd283198
test edi, edi
je 0xd28318d
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
push 0
push 8
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 0x10