Function at 0x416ee0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4244
call fcn.0044c0a0
mov eax, dword [esp + 0x4248]
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
lea edx, [eax - 0x27d8]
mov ecx, dword [ebx + 0x104]
push esi
cmp ecx, ebp
push edi
mov dword [esp + 0x14], edx
jne 0x416f11
xor eax, eax
jmp 0x416f1c
mov eax, dword [ebx + 0x108]
sub eax, ecx
sar eax, 3
cmp edx, ebp
jl 0x417268
cmp edx, eax
jge 0x417268
mov ecx, dword [ebx + 0xa8]
add edx, 0x28a0
push edx
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x417268
mov edx, dword [0x4881a0]
mov eax, dword [0x4917e0]
lea ecx, [esp + 0x54]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 8]
push 0x100
push ecx
push 0x95
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, ebp
jne 0x416f7d
mov word [esp + 0x54], bp
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x416f99
lea eax, [esp + 0x54]
lea ecx, [esp + 0x10]
push eax
call fcn.00402c90
jmp 0x416fe7
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.004034f0
cmp eax, ebp
je 0x416fdc
push esi
push eax
push 0x95
call fcn.00403a10
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x416fdc
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.004034f0
cmp eax, ebp
jne 0x416fb0
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004035b0
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x2254]
push 0x1000
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2258]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edx
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2254]
lea edx, [esp + 0x2254]
push eax
mov dword [esp + 0x38], 0x59
mov dword [esp + 0x44], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x20], esi
jne 0x417089
mov eax, dword [esp + 0x10]
mov edx, dword [0x4881a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x417268
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x417268
jmp 0x417258
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x254]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1a]
lea ecx, [esp + 0x1b]
push eax
push ebp
push ecx
lea ecx, [esp + 0x50]
call fcn.004184f0
lea edx, [esp + 0x44]
mov ecx, ebx
push edx
call fcn.004174c0
lea eax, [esp + 0x254]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x417229
mov ecx, dword [ebx + 0x104]
mov edx, dword [esp + 0x14]
lea eax, [ecx + edx*8]
mov ecx, dword [ecx + edx*8 + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [ebx + 0x20]
call fcn.004203e0
mov ecx, eax
call fcn.0041f2d0
mov ebp, eax
mov eax, dword [0x4881a0]
lea ecx, [esp + 0x254]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x417174
lea edx, [esp + 0x254]
shr edx, 0x10
jne 0x41712e
xor eax, eax
lea ecx, [esp + 0x254]
mov ax, cx
lea ecx, [esp + 0x14]
push eax
call fcn.004032e0
jmp 0x417174
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x417174
push esi
lea ecx, [esp + 0x18]
call fcn.004036b0
test eax, eax
je 0x417174
lea ecx, [esi + esi]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x417174
mov edi, dword [esp + 0x14]
mov edx, ecx
lea esi, [esp + 0x254]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x44]
push eax
push ebp
push ecx
mov ecx, ebx
call fcn.00417b90
mov ecx, dword [0x4881a4]
mov esi, eax
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4171b7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4171b7
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004472d3
add esp, 4
test esi, esi
je 0x4171fc
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x254]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esp + 0x254]
add ebp, 0x24
test eax, eax
je 0x4171ea
lea ecx, [esp + 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x254]
mov ecx, ebp
push edx
push eax
call fcn.00403710
jmp 0x417225
mov edi, dword [esp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push edi
call esi
push 0
push 0
push 0xb7
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [esp + 0x44]
call fcn.00418400
mov eax, dword [esp + 0x10]
mov edx, dword [0x4881a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x417268
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x417268
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004472d3
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4244
ret 4