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

Disassembly:
sub esp, 0x2d8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x980], ebx
je 0x4c1675
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4c1675
mov edx, dword [esi + 0x38]
lea ecx, [esp + 0x44]
push edi
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov al, byte [esi + 0xa98]
xor edi, edi
test al, 2
mov dword [esp + 0x20], edi
mov dword [esi + 0xa9c], ebx
je 0x4c1089
mov edi, 2
mov dword [esp + 0x20], edi
mov eax, dword [esi + 0x980]
xor edx, edx
cmp eax, ebx
mov dword [esp + 0x1c], edx
jle 0x4c15e9
push ebp
jmp 0x4c10a6
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
sub ecx, edi
cmp edx, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edx
jge 0x4c1274
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x90]
mov dword [esp + 0x30], eax
lea edx, [esi + ecx*4 + 0x940]
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x38]
mov ebp, dword [eax]
mov ecx, ebp
shl ecx, 4
add ecx, ebp
mov eax, dword [esi + ecx*8 + 0xc8]
lea edi, [esi + ecx*8]
test al, 8
jne 0x4c11f6
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp edx, ecx
jle 0x4c111d
test al, 1
jne 0x4c121a
mov ecx, dword [esi + 0xaa0]
test ecx, ecx
je 0x4c112b
xor ebx, ebx
jmp 0x4c113a
test ah, 1
je 0x4c1134
xor ebx, ebx
jmp 0x4c113a
mov ebx, dword [esi + 0xa84]
test al, 2
mov dword [esp + 0x28], ebx
je 0x4c1175
mov ecx, dword [edi + 0x140]
test ecx, ecx
je 0x4c1153
call fcn.004cfb70
jmp 0x4c1159
mov eax, dword [edi + 0xe4]
mov dword [edi + 0x134], eax
mov eax, dword [edi + 0x13c]
test eax, eax
jg 0x4c11b8
mov ecx, dword [edi + 0x134]
mov eax, ebx
add eax, ecx
jmp 0x4c11b8
mov ecx, dword [esi + 0x30]
mov eax, 0x51eb851f
imul ecx, dword [edi + 0xe4]
mul ecx
mov ecx, dword [esp + 0x30]
shr edx, 5
mov dword [edi + 0x134], edx
mov edx, dword [edi + 0xe4]
mov dword [ecx], ebp
lea eax, [edx + ebx]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
add edx, eax
inc ebx
add ecx, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
add ecx, eax
cmp ecx, edx
mov dword [esp + 0x10], ecx
jg 0x4c1220
mov ecx, dword [edi + 0xe8]
mov eax, 0x51eb851f
imul ecx, dword [esi + 0x30]
mul ecx
mov eax, dword [esp + 0x34]
shr edx, 5
cmp edx, eax
jle 0x4c11ea
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
cmp eax, edx
je 0x4c1274
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 0x980]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], edx
jl 0x4c10ea
jmp 0x4c1274
dec dword [esp + 0x14]
jmp 0x4c1274
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
cmp ecx, edx
mov edx, ebp
jne 0x4c124e
shl edx, 4
add edx, ebp
mov eax, 0x51eb851f
mov ecx, dword [esi + edx*8 + 0xe8]
imul ecx, dword [esi + 0x30]
mul ecx
shr edx, 5
mov dword [esp + 0x34], edx
jmp 0x4c1274
shl edx, 4
add edx, ebp
test byte [esi + edx*8 + 0xc8], 2
jne 0x4c1261
dec dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
dec edx
sub ecx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x980]
cmp ecx, eax
jne 0x4c1287
dec ecx
mov dword [esp + 0x14], ecx
mov ebx, dword [esp + 0x20]
cmp ebx, ecx
jl 0x4c12e9
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + ebx*4 + 0x940]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x3c], eax
mov eax, ecx
shl eax, 4
add eax, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edx
mov edx, dword [esi + eax*8 + 0xe8]
mov eax, 0x51eb851f
imul edx, dword [esi + 0x30]
mul edx
mov eax, dword [esi + 0xa9c]
shr edx, 5
add edx, edi
push eax
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x40]
push edx
push ecx
mov ecx, esi
call fcn.004c0f00
jmp 0x4c1595
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
sub edx, edi
test edx, edx
mov dword [esp + 0x10], edx
jle 0x4c1452
mov eax, dword [esp + 0x18]
cmp eax, 1
jle 0x4c1452
mov edi, dword [esp + 0x1c]
add edx, edi
dec eax
test eax, eax
mov dword [esp + 0x10], edx
jle 0x4c1427
mov ebx, 1
lea edx, [esp + 0x90]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], edx
mov edi, dword [esi + 0xaa0]
mov eax, dword [edx]
xor ecx, ecx
cmp edi, ecx
je 0x4c1347
mov dword [esp + 0x28], ecx
jmp 0x4c136a
mov edi, eax
shl edi, 4
add edi, eax
mov eax, dword [esi + edi*8 + 0xc8]
test ah, 1
je 0x4c1360
mov dword [esp + 0x28], ecx
jmp 0x4c136a
mov eax, dword [esi + 0xa84]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
cmp ebx, eax
jge 0x4c13ca
mov edi, eax
add edx, 4
sub edi, ebx
mov eax, dword [esi + 0xaa0]
test eax, eax
je 0x4c138b
xor eax, eax
jmp 0x4c13aa
mov eax, dword [edx]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [esi + ecx*8 + 0xc8]
test ah, 1
je 0x4c13a4
xor eax, eax
jmp 0x4c13aa
mov eax, dword [esi + 0xa84]
mov ecx, dword [edx]
add edx, 4
mov ebx, ecx
shl ebx, 4
add ebx, ecx
sub eax, dword [esi + ebx*8 + 0xe4]
add ebp, eax
dec edi
jne 0x4c137d
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx]
mov edi, dword [esp + 0x28]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea eax, [esi + ecx*8]
mov ecx, dword [esi + ecx*8 + 0x104]
add edi, ecx
cmp ebp, edi
jb 0x4c13ef
mov dword [eax + 0xec], ecx
jmp 0x4c13f5
mov dword [eax + 0xec], ebp
mov eax, dword [eax + 0xec]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
add eax, edi
sub ecx, eax
mov eax, dword [esp + 0x18]
add edx, 4
inc ebx
mov dword [esp + 0x10], ecx
dec eax
lea ecx, [ebx - 1]
mov dword [esp + 0x30], edx
cmp ecx, eax
mov dword [esp + 0x1c], ebx
jl 0x4c1333
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + edx*4 + 0x8c]
sub ecx, ebp
mov edx, eax
shl edx, 4
add edx, eax
mov dword [esi + edx*8 + 0xec], ecx
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x54]
cmp ecx, ebx
mov dword [esp + 0x1c], ecx
jl 0x4c1591
lea eax, [esi + ecx*4 + 0x940]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov ebx, dword [ecx]
mov edx, ebx
shl edx, 4
add edx, ebx
mov al, byte [esi + edx*8 + 0xc8]
lea ebp, [esi + edx*8]
test al, 8
jne 0x4c1571
mov ecx, dword [ebp + 0x144]
lea eax, [esp + 0xe0]
push 0x104
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0xe0]
push str.AddressBar
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
add ecx, eax
mov eax, dword [esi + 0xaa0]
add esp, 8
test eax, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edi
je 0x4c14e0
xor eax, eax
jmp 0x4c14f5
mov eax, dword [ebp + 0xc8]
test ah, 1
je 0x4c14ef
xor eax, eax
jmp 0x4c14f5
mov eax, dword [esi + 0xa84]
test byte [ebp + 0xc8], 2
je 0x4c1514
mov ecx, dword [ebp + 0x13c]
test ecx, ecx
jle 0x4c150c
sub edi, ecx
jmp 0x4c1541
mov edx, dword [ebp + 0x134]
jmp 0x4c153d
cmp dword [esp + 0x18], 1
jne 0x4c1537
sub edi, dword [ebp + 0xe4]
sub edi, eax
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x3c], edi
jmp 0x4c1545
mov edx, dword [ebp + 0xec]
sub edi, edx
sub edi, eax
mov dword [esp + 0x3c], edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, edx
jne 0x4c1559
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 0xa9c]
lea edx, [esp + 0x3c]
push ecx
push edx
push ebx
mov ecx, esi
call fcn.004c0f00
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
dec eax
sub edx, 4
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edx
jge 0x4c146d
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x4c15c2
mov edx, dword [esp + 0x24]
add edx, eax
mov eax, dword [esi + 0xa98]
test eax, eax
mov dword [esp + 0x24], edx
je 0x4c15c2
and al, 0x10
mov ecx, edx
neg al
sbb eax, eax
add eax, 2
add ecx, eax
mov dword [esp + 0x24], ecx
mov edi, dword [esi + 0xa9c]
mov eax, dword [esi + 0x980]
inc edi
inc ebx
cmp ebx, eax
mov dword [esi + 0xa9c], edi
mov dword [esp + 0x20], ebx
jl 0x4c10a0
mov edi, dword [esp + 0x24]
pop ebp
xor ebx, ebx
mov eax, dword [esi + 0xa98]
test al, 8
je 0x4c15f6
dec edi
jmp 0x4c15ff
xor ecx, ecx
cmp eax, ebx
setne cl
sub edi, ecx
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
sub edx, ecx
cmp edi, edx
je 0x4c1628
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
push 6
sub eax, edx
push edi
push eax
mov eax, dword [esi + 0x38]
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esi + 0xa88], edi
je 0x4c163d
mov ecx, esi
mov dword [esi + 0xa88], edi
call fcn.004c19b0
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
lea edx, [esp + 0x58]
mov dword [esp + 0x60], 0xfffffcb9
push edx
push ebx
push 0x4e
push eax
mov dword [esp + 0x78], ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x38]
push 1
push ebx
push ecx
call fcn.004d27c0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x2d8
ret