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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dbf6
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4be5b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0045f500
mov edi, eax
call fcn.0040b420
lea ecx, [ebp - 0x224]
push ecx
mov ecx, eax
call fcn.0041ae50
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 4], 0
cmp dword [ecx - 0xc], 0
jne 0x4246f7
push 0x210
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00432c40
mov eax, dword [edi]
lea ecx, [ebp - 0x220]
add esp, 0xc
push 0x108
push ecx
push edi
call dword [eax + 0x2c]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00424960
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
je 0x42472e
mov ecx, dword [edi]
push eax
push edi
call dword [ecx + 0x30]
test eax, eax
jne 0x42472e
cmp byte [ebx + 0x60], al
jne 0x424722
push dword [ebp - 0x224]
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 0x224]
mov eax, dword [edi]
push edi
call dword [eax + 0x20]
cmp byte [ebx + 0x60], 0
jne 0x42484a
lea ecx, [ebp - 0x228]
call fcn.00403ff0
push dword [ebx + 0x54]
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edx, [eax + 1]
mov dword [ebp - 0x22c], edx
test edx, edx
js 0x42488b
mov esi, dword [ebp - 0x228]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x424790
push edx
lea ecx, [ebp - 0x228]
call fcn.00410500
mov esi, dword [ebp - 0x228]
mov edx, dword [ebp - 0x22c]
push edx
push esi
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 0xffffffff
jne 0x4247ac
push dword [esi - 8]
push esi
call fcn.0044043a
add esp, 8
test eax, eax
js 0x42488b
cmp eax, dword [esi - 8]
jg 0x42488b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
jne 0x42482e
push 0x210
push ecx
lea eax, [ebp - 0x220]
push eax
call fcn.00432c40
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x108
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push 0x4875ac
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push eax
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [edi]
lea ecx, [ebp - 0x220]
push ecx
push edi
call dword [eax + 0x20]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42484a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42486f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004068b0
int3