Function at 0x431570
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4b20e1
push eax
mov eax, 0x4244
mov dword fs:[0], esp
call fcn.004a7630
mov eax, dword [esp + 0x4254]
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
lea edx, [eax - 0x27d8]
mov ecx, dword [ebp + 0x124]
push esi
cmp ecx, ebx
push edi
mov dword [esp + 0x14], edx
jne 0x4315b6
xor eax, eax
jmp 0x4315c1
mov eax, dword [ebp + 0x128]
sub eax, ecx
sar eax, 3
cmp edx, ebx
jl 0x431933
cmp edx, eax
jge 0x431933
mov ecx, dword [ebp + 0xc4]
lea eax, [edx + 0x28a0]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x431933
mov edx, dword [0x4c8080]
mov dword [esp + 0x10], edx
mov eax, dword [0x4d7448]
lea ecx, [esp + 0x54]
push 0x100
push ecx
mov eax, dword [eax + 8]
push 0x95
push eax
mov dword [esp + 0x426c], ebx
call dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, ebx
jne 0x431629
mov word [esp + 0x54], bx
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x431645
lea eax, [esp + 0x54]
lea ecx, [esp + 0x10]
push eax
call fcn.00404b70
jmp 0x431693
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.004058b0
cmp eax, ebx
je 0x431688
push esi
push eax
push 0x95
call fcn.00405e80
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x431688
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.004058b0
cmp eax, ebx
jne 0x43165c
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00405970
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 [ebp + 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], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x20], esi
jne 0x431735
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x431933
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x431933
jmp 0x431923
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 ebx
push ecx
lea ecx, [esp + 0x50]
call fcn.00429d90
lea edx, [esp + 0x44]
mov ecx, ebp
push edx
mov byte [esp + 0x4260], 1
call fcn.00431bb0
lea eax, [esp + 0x254]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4318ec
mov eax, dword [ebp + 0x124]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx*8 + 4]
mov eax, dword [eax + ecx*8]
push edx
push eax
lea ecx, [ebp + 0x20]
call fcn.00438bb0
mov ecx, eax
call fcn.00437240
mov ecx, dword [0x4c8080]
lea edx, [esp + 0x254]
test edx, edx
mov ebx, eax
mov dword [esp + 0x14], ecx
je 0x431827
lea eax, [esp + 0x254]
shr eax, 0x10
jne 0x4317e1
xor eax, eax
lea ecx, [esp + 0x254]
mov ax, cx
lea ecx, [esp + 0x14]
push eax
call fcn.004056a0
jmp 0x431827
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x431827
push esi
lea ecx, [esp + 0x18]
call fcn.00405a70
test eax, eax
je 0x431827
lea ecx, [esi + esi]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x431827
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 ebx
push ecx
mov ecx, ebp
mov byte [esp + 0x4268], 2
call fcn.00431cf0
mov ecx, dword [0x4c8084]
mov esi, eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x425c], 1
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x43187a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43187a
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0043b3d0
add esp, 4
test esi, esi
je 0x4318bf
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 ebx, 0x24
test eax, eax
je 0x4318ad
lea ecx, [esp + 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x254]
mov ecx, ebx
push edx
push eax
call fcn.00405ad0
jmp 0x4318e8
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]
mov byte [esp + 0x425c], 0
call fcn.00429c90
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x431933
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x431933
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043b3d0
add esp, 4
mov ecx, dword [esp + 0x4254]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4250
ret 4