Function at 0x4291f0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a20c6
push eax
mov eax, 0x4240
mov dword fs:[0], esp
call fcn.004999f0
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
push edi
push edi
push 8
mov ecx, 0x4c6f80
call fcn.00403360
mov eax, dword [esp + 0x4260]
mov ecx, dword [ebp + 0x134]
cmp ecx, edi
lea edx, [eax - 0x2710]
mov dword [esp + 0x1c], edx
jne 0x429244
xor eax, eax
jmp 0x42924f
mov eax, dword [ebp + 0x138]
sub eax, ecx
sar eax, 3
cmp edx, edi
jl 0x429532
cmp edx, eax
jge 0x429532
mov ecx, dword [ebp + 0xc4]
lea eax, [edx + 0x29cc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
cmp ebx, edi
je 0x429532
mov edx, dword [0x4b7080]
mov dword [esp + 0x10], edx
mov eax, dword [0x4c6f78]
lea ecx, [esp + 0x50]
push 0x100
push ecx
mov eax, dword [eax + 8]
push 0x95
push eax
mov dword [esp + 0x4268], edi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, edi
jne 0x4292b5
mov word [esp + 0x50], di
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x4292d1
lea eax, [esp + 0x50]
lea ecx, [esp + 0x10]
push eax
call fcn.00405d80
jmp 0x42931f
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00406ac0
cmp eax, edi
je 0x429314
push esi
push eax
push 0x95
call fcn.00406fc0
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x429314
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.00406ac0
cmp eax, edi
jne 0x4292e8
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00406b80
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x2250]
push 0x1000
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2254]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], ecx
lea edx, [esp + 0x30]
xor esi, esi
lea eax, [esp + 0x2250]
lea ecx, [esp + 0x2250]
push edx
mov dword [esp + 0x44], 0x59
mov dword [esp + 0x50], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x4293bd
mov eax, dword [esp + 0x10]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x429532
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x429532
jmp 0x429522
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x250]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x17]
mov al, byte [esp + 0x17]
mov byte [esp + 0x21], cl
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.0042bf60
push esi
lea edx, [esp + 0x24]
push 1
push edx
mov ecx, ebp
mov byte [esp + 0x4264], 1
call fcn.00429cf0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x250]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4294e7
mov eax, dword [ebp + 0x134]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ecx*8 + 4]
mov eax, dword [eax + ecx*8]
push edx
push eax
lea ecx, [ebp + 0x20]
call fcn.00424c00
mov ecx, eax
call fcn.00434830
lea ecx, [esp + 0x250]
mov esi, eax
push ecx
lea edx, [esp + 0x24]
push esi
push edx
mov ecx, ebp
call fcn.0042a790
test eax, eax
je 0x4294c2
lea eax, [esp + 0x250]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp + 0x250]
lea edi, [esi + 0x24]
test ecx, ecx
jne 0x42947b
xor esi, esi
jmp 0x42948b
lea edx, [esp + 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push esi
mov ecx, edi
call fcn.00410320
test eax, eax
je 0x4294e7
mov edx, dword [edi]
lea ebp, [esi + esi]
lea eax, [esp + 0x250]
push ebp
lea ecx, [esi + esi + 2]
push eax
push ecx
push edx
call fcn.00405800
mov eax, dword [edi]
add esp, 0x10
mov dword [eax - 8], esi
mov ecx, dword [edi]
mov word [ecx + ebp], 0
jmp 0x4294e7
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push ebx
call esi
push 0
push 0
push 0xb7
push ebx
call esi
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x4258], 0
call fcn.0042b370
mov eax, dword [esp + 0x10]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x429532
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x429532
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
mov ecx, dword [esp + 0x4250]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x424c
ret 4