Function at 0x47ebe7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x47ebf0
mov eax, dword [ebp - 4]
add esp, 0xfffffcf4
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x224], eax
mov eax, 0x4af358
call fcn.004992ac
test bl, bl
je 0x47ec25
mov byte [0x4c988a], 1
push 0x66
push dword [ebp - 0x224]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea eax, [ebp - 0x628]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov edx, esi
sub edx, 0xd
je 0x47f041
sub edx, 0x120
je 0x47ec6f
sub edx, 2
je 0x47f041
sub edx, 0xc
je 0x47f041
jmp 0x47f1c6
mov word [ebp - 0x210], 8
mov word [ebp - 0x210], 0x14
lea eax, [ebp - 0xf8]
call fcn.0040fdcc
add dword [ebp - 0x204], 4
mov word [ebp - 0x210], 0x20
mov word [ebp - 0x210], 0x2c
lea eax, [ebp - 0x1f0]
call fcn.0040fdcc
add dword [ebp - 0x204], 4
mov word [ebp - 0x210], 0x20
mov word [ebp - 0x210], 0x38
lea eax, [ebp - 0x1fc]
call fcn.00402138
inc dword [ebp - 0x204]
mov word [ebp - 0x210], 0x20
xor esi, esi
mov dword [ebp - 0x64c], esi
xor eax, eax
mov dword [ebp - 0x648], eax
lea edx, [ebp - 0x650]
mov dword [ebp - 0x650], 8
mov dword [ebp - 0x640], 2
push edx
push 0
push 0x1005
push ebx
call sub.USER32.DLL_SendMessageA
test eax, eax
je 0x47ee5e
test byte [ebp - 0x644], 2
je 0x47ee58
xor ecx, ecx
lea eax, [ebp - 0xa50]
mov dword [ebp - 0xe70], ecx
lea edx, [ebp - 0xe78]
mov dword [ebp - 0xe60], 0x400
mov dword [ebp - 0xe64], eax
push edx
push esi
push 0x102d
push ebx
call sub.USER32.DLL_SendMessageA
mov dword [ebp - 0xe98], 1
mov dword [ebp - 0xe88], 0x400
lea ecx, [ebp - 0xe50]
lea eax, [ebp - 0xea0]
mov dword [ebp - 0xe8c], ecx
push eax
push esi
push 0x102d
push ebx
call sub.USER32.DLL_SendMessageA
lea eax, [ebp - 0xe50]
xor edx, edx
call fcn.0040ac6c
call fcn.0040a9b0
test al, al
je 0x47ee36
lea ecx, [ebp - 0xe50]
push ecx
lea eax, [ebp - 0x12a0]
push eax
call fcn.00498e7c
add esp, 8
lea eax, [ebp - 0x12a0]
call fcn.0040c35c
lea edx, [ebp - 0xa50]
push edx
lea ecx, [ebp - 0x12a0]
push ecx
call fcn.00498da0
add esp, 8
lea eax, [ebp - 0x12a0]
push eax
call fcn.00498eac
pop ecx
mov edi, eax
mov word [ebp - 0x210], 0x20
mov eax, dword [ebp - 0x1f8]
inc edi
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x1fc]
mov edx, edi
call fcn.0040188c
push edi
lea ecx, [ebp - 0x12a0]
push ecx
mov eax, dword [ebp - 0x1fc]
add eax, dword [ebp - 0x228]
push eax
call fcn.00498c8c
add esp, 0xc
jmp 0x47ee58
lea edx, [ebp - 0xe50]
lea eax, [ebp - 0xf8]
call fcn.0040ff50
lea edx, [ebp - 0xa50]
lea eax, [ebp - 0x1f0]
call fcn.0040ff50
inc esi
jmp 0x47ece5
cmp dword [ebp - 0xc8], 0
jne 0x47eefa
cmp dword [ebp - 0x1c0], 0
jne 0x47eefa
cmp dword [ebp - 0x1f8], 0
jne 0x47eefa
push 0x30
mov eax, 0x65
call fcn.004129c8
push eax
mov eax, 0x14c
call fcn.004129c8
push eax
push dword [0x4c6eec]
call sub.USER32.DLL_MessageBoxA
dec dword [ebp - 0x204]
lea eax, [ebp - 0x1fc]
mov edx, 2
call fcn.004017f0
sub dword [ebp - 0x204], 4
lea eax, [ebp - 0x1f0]
mov edx, 2
call fcn.0040fea4
sub dword [ebp - 0x204], 4
lea eax, [ebp - 0xf8]
mov edx, 2
call fcn.0040fea4
mov ecx, dword [ebp - 0x220]
mov dword fs:[0], ecx
jmp 0x47f226
lea eax, [ebp - 0x1fc]
xor edx, edx
call fcn.00401864
cmp dword [0x4c6ef8], 0
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 0x16a0], 0
sete dl
lea eax, [ebp - 0x16a0]
push ecx
push eax
and edx, 1
push 1
push edx
xor edx, edx
mov al, 1
lea ecx, [ebp - 0xf8]
call fcn.0044cbb0
cmp dword [ebp - 0x1f8], 1
jle 0x47efc9
cmp byte [ebp - 0x16a0], 0
je 0x47efc9
lea eax, [ebp - 0x16a0]
xor ecx, ecx
xor edx, edx
call fcn.0040a3dc
lea eax, [ebp - 0x16a0]
push eax
call fcn.00498eac
pop ecx
mov byte [ebp + eax - 0x169f], 0
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 0x16a0]
mov dword [ebp - 0x16c0], edx
cmp dword [0x4bdae4], 1
mov dword [ebp - 0x16bc], 2
mov ecx, dword [ebp - 0x1fc]
mov dword [ebp - 0x16b8], ecx
mov dword [ebp - 0x16b4], eax
mov word [ebp - 0x16b0], 0
jne 0x47efbd
or word [ebp - 0x16b0], 0x10
lea edx, [ebp - 0x16c0]
push edx
call sub.SHELL32.DLL_SHFileOperationA
dec dword [ebp - 0x204]
lea eax, [ebp - 0x1fc]
mov edx, 2
call fcn.004017f0
sub dword [ebp - 0x204], 4
lea eax, [ebp - 0x1f0]
mov edx, 2
call fcn.0040fea4
sub dword [ebp - 0x204], 4
lea eax, [ebp - 0xf8]
mov edx, 2
call fcn.0040fea4
mov word [ebp - 0x210], 8
mov word [ebp - 0x210], 0
jmp 0x47f1c6
push 1
push 0xffffffffffffffff
push 0x100c
push ebx
call sub.USER32.DLL_SendMessageA
mov edi, eax
cmp edi, 0xffffffff
je 0x47f1c6
xor eax, eax
lea edx, [ebp - 0x1ac0]
mov dword [ebp - 0x1ee0], eax
lea ecx, [ebp - 0x1ee8]
mov dword [ebp - 0x1ed0], 0x400
mov dword [ebp - 0x1ed4], edx
push ecx
push edi
push 0x102d
push ebx
call sub.USER32.DLL_SendMessageA
mov dword [ebp - 0x1f08], 1
mov dword [ebp - 0x1ef8], 0x400
lea eax, [ebp - 0x1ec0]
lea edx, [ebp - 0x1f10]
mov dword [ebp - 0x1efc], eax
push edx
push edi
push 0x102d
push ebx
call sub.USER32.DLL_SendMessageA
lea eax, [ebp - 0x1ec0]
xor edx, edx
call fcn.0040ac6c
call fcn.0040a9b0
test al, al
je 0x47f0f3
mov eax, 0x4c6f00
call fcn.0045ea0c
lea edx, [ebp - 0x1ec0]
mov eax, 0x4c6f00
xor ecx, ecx
call fcn.0045ca6c
jmp 0x47f141
lea edx, [ebp - 0x1ec0]
mov eax, 0x4c6f00
xor ecx, ecx
call fcn.0045c8f4
lea edx, [ebp - 0x1ac0]
push edx
lea eax, [ebp - 0x2310]
push eax
call fcn.00498e7c
add esp, 8
lea eax, [ebp - 0x2310]
call fcn.0040c42c
cmp byte [ebp - 0x2310], 0
je 0x47f141
lea edx, [ebp - 0x2310]
mov eax, 0x4c6f00
xor ecx, ecx
call fcn.0045ca6c
lea eax, [ebp - 0x1ac0]
call fcn.0040be48
mov edx, eax
mov eax, 0x4c6f00
call fcn.00459c98
cmp esi, 0x12f
jne 0x47f19f
mov edx, dword [0x4d5cd4]
cmp byte [edx + 0x2e8], 0
je 0x47f191
mov ecx, dword [0x4d5cd4]
mov edx, dword [0x4d5cd4]
add edx, 0x2e8
mov eax, 0x4c76a0
mov cl, byte [ecx + 0x6eb]
call fcn.0046c168
mov eax, 0x4c6f00
mov cl, 1
xor edx, edx
call fcn.0045bca0
cmp esi, 0x13b
jne 0x47f1b3
mov eax, dword [0x4d5cd4]
mov byte [eax + 0x6ef], 1
cmp esi, 0xd
jne 0x47f1c6
mov eax, 0x4c6f00
xor ecx, ecx
mov dl, 1
call fcn.0045bca0
cmp byte [0x4d5cdc], 0
je 0x47f1dc
lea eax, [ebp - 0x628]
push eax
call fcn.0049a80c
pop ecx
push 0x7f00
push 0
call sub.USER32.DLL_LoadCursorA
push eax
call sub.USER32.DLL_SetCursor
cmp byte [0x4d5cdd], 0
je 0x47f212
push 0
push 0x6f
push 0x111
push dword [ebp - 0x224]
call sub.USER32.DLL_PostMessageA
mov byte [0x4d5cdd], 0
mov byte [0x4c988a], 0
mov edx, dword [ebp - 0x220]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret