Function at 0x4175c0
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x202c
call fcn.0044c0a0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [ebp + 0x20]
call fcn.004203e0
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x104]
xor esi, esi
cmp eax, esi
jne 0x4175ee
mov dword [esp + 0x18], esi
jmp 0x4175fd
mov ecx, dword [ebp + 0x108]
sub ecx, eax
sar ecx, 3
mov dword [esp + 0x18], ecx
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [0x4881a0]
lea ecx, [esp + 0x16]
mov dword [esp + 0x10], eax
mov ebx, eax
lea eax, [esp + 0x17]
mov dword [esp + 0x20], ebx
push eax
push esi
push ecx
lea ecx, [esp + 0x38]
call fcn.004184f0
lea edx, [esp + 0x2c]
mov ecx, ebp
push edx
call fcn.004174c0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
test eax, eax
jle 0x4177d6
mov eax, dword [ebp + 0x104]
mov ecx, dword [eax + esi*8 + 4]
mov edx, dword [eax + esi*8]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.0041f2d0
mov ecx, dword [eax + 0x78]
mov dword [esp + 0x24], eax
test ecx, ecx
jne 0x4177c1
mov ecx, dword [ebp + 0xa8]
lea eax, [esi + 0x28a0]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x4177c1
lea edx, [esp + 0x3c]
push 0x1000
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x3c]
test eax, eax
je 0x4176b2
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
push eax
call fcn.00403710
lea ecx, [esp + 0x10]
call fcn.0040b7c0
mov edi, dword [esp + 0x10]
xor esi, esi
cmp word [edi], si
je 0x417712
mov ax, word [edi]
push eax
call fcn.0044beb3
add esp, 4
test eax, eax
je 0x4176ed
test esi, esi
jne 0x4176ef
mov esi, edi
jmp 0x4176ef
xor esi, esi
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
cmp word [edi], 0
jne 0x4176d5
test esi, esi
je 0x417712
mov word [esi], 0
mov eax, dword [esp + 0x10]
sub esi, eax
sar esi, 1
mov dword [eax - 8], esi
lea ecx, [esp + 0x10]
call fcn.0040b7c0
mov esi, dword [esp + 0x10]
mov ax, word [esi]
push eax
call fcn.0044beb3
add esp, 4
test eax, eax
je 0x417748
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov ax, word [esi]
push eax
call fcn.0044beb3
add esp, 4
test eax, eax
jne 0x41772f
mov eax, dword [esp + 0x10]
mov ecx, esi
sub ecx, eax
mov edi, dword [eax - 8]
mov edx, dword [eax - 4]
sar ecx, 1
sub edi, ecx
lea edx, [edx + edx + 2]
lea ecx, [edi + edi + 2]
cmp edx, ecx
jb 0x417775
push ecx
push esi
push eax
call fcn.0044bb70
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, dword [esp + 0x24]
mov dword [eax - 8], edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push esi
push ecx
mov ecx, ebp
call fcn.00417b90
test eax, eax
je 0x417840
lea edx, [esp + 0x3c]
add esi, 0x24
test edx, edx
jne 0x4177a5
xor eax, eax
jmp 0x4177b0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x3c]
push ecx
push eax
mov ecx, esi
call fcn.00403710
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
mov dword [esp + 0x1c], esi
jl 0x417649
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
call fcn.00418400
mov ecx, dword [0x4881a4]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ebx - 0xc]
cmp eax, ecx
je 0x417805
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x417805
push esi
call fcn.004472d3
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4881a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x417830
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x417830
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004472d3
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x202c
ret
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]
lea ecx, [esp + 0x2c]
call fcn.00418400
mov esi, dword [esp + 0x20]
mov eax, dword [0x4881a4]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x417897
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x417897
push esi
call fcn.004472d3
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4881a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4178c2
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4178c2
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004472d3
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x202c
ret