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

Disassembly:
sub esp, 0xa4
mov eax, dword [esp + 0xb4]
push ebx
mov ebx, ecx
push ebp
mov dword [eax], 0
mov ecx, dword [0x547570]
mov eax, dword [ebx + 0x20]
push esi
push edi
mov dword [esp + 0x18], ecx
test al, 0xf0
push eax
mov ecx, ebx
jne 0x4b3da3
call fcn.004b4b00
and eax, 0xffff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
jmp 0x4b3db0
call fcn.004b4b00
and eax, 0xffff
push eax
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov edx, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fa
push edx
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 4]
push 0x3fa
push eax
call esi
lea ecx, [esp + 0x14]
push 0x47
push ecx
mov ebp, eax
call fcn.004bd990
mov ecx, dword [esp + 0x20]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x4b3e39
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4b3e09
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4b3e10
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4b3e20
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00405870
jmp 0x4b3e39
lea ecx, [esp + 0x18]
call fcn.004124c0
mov esi, dword [esi]
mov dword [esp + 0x18], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b3e68
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b3e68
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x54]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x14a
push ecx
call esi
lea edx, [esp + 0x14]
push 0x48
push edx
call fcn.004bd990
mov edi, dword [eax]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x547574]
add esp, 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b3ec0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b3ec0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
push edi
push 0
push 0x143
push ebp
call esi
lea eax, [esp + 0x14]
push 0x49
push eax
call fcn.004bd990
mov ecx, dword [esp + 0x20]
mov edi, eax
add esp, 8
mov eax, dword [edi]
cmp ecx, eax
je 0x4b3f2a
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4b3efa
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4b3f01
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4b3f11
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00405870
jmp 0x4b3f2a
lea ecx, [esp + 0x18]
call fcn.004124c0
mov edi, dword [edi]
mov dword [esp + 0x18], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4b3f59
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b3f59
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x54]
push ecx
push 2
push 0x14a
push edx
call esi
lea eax, [esp + 0x14]
push 0x4a
push eax
call fcn.004bd990
mov ecx, dword [esp + 0x20]
mov edi, eax
add esp, 8
mov eax, dword [edi]
cmp ecx, eax
je 0x4b3fca
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4b3f9a
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4b3fa1
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4b3fb1
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00405870
jmp 0x4b3fca
lea ecx, [esp + 0x18]
call fcn.004124c0
mov edi, dword [edi]
mov dword [esp + 0x18], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4b3ff9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b3ff9
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x54]
push ecx
push 3
push 0x14a
push edx
call esi
mov eax, dword [ebx + 0x54]
push 0
push 0
push 0x14e
push eax
call esi
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [ebx + 0x54]
push 1
push eax
push 0x30
push ecx
mov dword [esp + 0x24], eax
call esi
mov eax, dword [ebx + 0x30]
test eax, eax
jle 0x4b4054
mov edx, dword [ebx + 0x54]
push 0
push eax
push 0x14e
push edx
call esi
push 0
push eax
mov eax, dword [ebx + 0x54]
push 0x14e
push eax
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x54]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push ecx
push edx
call edi
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 4]
and eax, 0xf
mov dword [esp + 0x40], eax
lea eax, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx + 4]
lea edx, [esp + 0x70]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebx + 4]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fa
push ecx
call ebp
mov edx, dword [ebx + 4]
push 0xfa0
push edx
call ebp
mov ebp, eax
mov eax, dword [esp + 0x14]
push 1
push eax
push 0x30
push ebp
call esi
mov ecx, dword [ebx + 0x68]
mov edx, dword [ebx + 4]
push ecx
push edx
call edi
mov eax, dword [ebx + 0x6c]
push eax
push ebp
call edi
mov eax, dword [ebx + 0x6c]
push ecx
mov esi, esp
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x4b40e6
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4b4109
mov ecx, dword [0x547570]
mov dword [esi], ecx
mov edi, dword [ebx + 0x6c]
test edi, edi
jne 0x4b40f9
xor eax, eax
jmp 0x4b4100
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.00405870
lea edx, [esp + 0x6c]
mov ecx, ebx
push edx
call fcn.004b3c20
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov eax, 5
add ecx, eax
add edi, eax
lea eax, [esp + 0x84]
mov dword [esp + 0x6c], edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
push ebp
mov dword [esp + 0x70], ecx
call edi
mov ecx, dword [ebx + 4]
lea esi, [ebx + 0x58]
push esi
push 0x7d1
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
mov edx, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
push esi
push edx
call edi
test eax, eax
je 0x4b4170
mov eax, dword [ebx + 4]
add esi, 8
push esi
push eax
call edi
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
sub eax, ecx
mov ecx, dword [esp + 0x88]
add eax, edi
sub ecx, esi
mov dword [esp + 0x1c], eax
add ecx, edx
mov dword [esp + 0x10], ecx
jns 0x4b41ae
mov dword [esp + 0x10], 0
test eax, eax
jge 0x4b41ba
mov dword [esp + 0x1c], 0
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x30], ecx
test eax, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], 0
jne 0x4b4239
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x44]
push eax
push 0x1770
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x24]
sub eax, edx
sub eax, ecx
push 0
mov dword [esp + 0x18], eax
jmp 0x4b423b
push 1
mov ecx, ebx
call fcn.004b4cc0
mov eax, dword [esp + 0x1c]
test eax, eax
jg 0x4b4256
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4b42e1
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x34]
push ecx
add edi, eax
add esi, ecx
push eax
push ebp
mov ecx, ebx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], esi
call fcn.004b4be0
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
push 0x1770
push ecx
call ebp
push eax
mov ecx, ebx
call fcn.004b4be0
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
push edx
push 0
push 0x1770
push eax
call ebp
push eax
mov ecx, ebx
call fcn.004b4c40
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 4]
push ecx
push 0
push 0x3fa
push edx
call ebp
push eax
mov ecx, ebx
call fcn.004b4c40
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
sub esi, ecx
mov ecx, dword [esp + 0x34]
xor ebp, ebp
sub esi, ecx
push ebp
sub edi, eax
push esi
push edi
push ecx
push eax
mov eax, dword [ebx + 4]
push ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebx + 0x68]
lea edi, [ebx + 0x68]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov eax, dword [ecx - 8]
mov dword [esp + 0x60], ebp
cmp eax, ebp
mov dword [esp + 0x64], ebp
jne 0x4b4373
mov edx, str.Achtung__
test edx, edx
je 0x4b4336
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x4b4338
xor esi, esi
mov eax, dword [edi]
cmp dword [eax - 0xc], 1
jg 0x4b4345
cmp esi, dword [eax - 4]
jle 0x4b4358
mov ecx, edi
call fcn.004124c0
push esi
mov ecx, edi
call fcn.00405530
cmp eax, ebp
je 0x4b4373
mov eax, dword [edi]
inc esi
push esi
push str.Achtung__
push eax
call fcn.00405400
add esp, 0xc
mov ecx, edi
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x40]
mov edx, 4
cmp eax, edx
jne 0x4b43a5
mov ecx, dword [ebx + 0x28]
mov eax, 7
cmp ecx, ebp
jne 0x4b438f
mov dword [ebx + 0x28], eax
mov dword [esp + 0x54], 6
mov dword [esp + 0x58], eax
mov esi, 2
jmp 0x4b445a
cmp eax, 3
jne 0x4b43d8
cmp dword [ebx + 0x28], ebp
jne 0x4b43b6
mov dword [ebx + 0x28], 2
mov dword [esp + 0x54], 6
mov dword [esp + 0x58], 7
mov dword [esp + 0x5c], 2
mov esi, 3
jmp 0x4b445a
cmp eax, 5
jne 0x4b43f8
cmp dword [ebx + 0x28], ebp
jne 0x4b43e9
mov dword [ebx + 0x28], 2
mov esi, 2
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], esi
jmp 0x4b445a
cmp eax, 1
jne 0x4b441c
cmp dword [ebx + 0x28], ebp
jne 0x4b4409
mov dword [ebx + 0x28], 2
mov esi, 2
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], esi
jmp 0x4b445a
mov ecx, 2
cmp eax, ecx
mov eax, dword [ebx + 0x28]
jne 0x4b4446
cmp eax, ebp
jne 0x4b442f
mov dword [ebx + 0x28], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], 5
mov esi, 3
jmp 0x4b445a
cmp eax, ebp
jne 0x4b4451
mov dword [ebx + 0x28], 1
mov esi, 1
mov dword [esp + 0x54], esi
cmp dword [ebx + 0x2c], ebp
je 0x4b4468
mov dword [esp + esi*4 + 0x54], 9
inc esi
mov ecx, dword [edi]
mov edx, dword [ebx + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0xa4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xac]
add eax, edx
lea ecx, [esp + 0x30]
cdq
sub eax, edx
mov edx, dword [ebx + 4]
push ecx
push 1
sar eax, 1
push edx
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x30]
push eax
push ecx
call edi
test eax, eax
je 0x4b44d8
mov eax, dword [ebx + 4]
lea edx, [esp + 0x38]
push edx
push eax
call edi
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov ecx, eax
sub ecx, edi
add ecx, 5
imul ecx, esi
sar ecx, 1
mov dword [esp + 0x40], ecx
lea ecx, [esi - 1]
cmp ecx, ebp
mov dword [esp + 0x14], ecx
jl 0x4b46d4
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
add edx, esi
lea ecx, [esp + ecx*4 + 0x54]
mov dword [esp + 0x80], edx
mov dword [esp + 0x1c], ecx
jmp 0x4b451e
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
sub eax, ecx
mov edi, dword [esp + 0x40]
add eax, 5
mov esi, dword [esp + 0x44]
imul eax, dword [esp + 0x14]
mov ecx, dword [edx]
mov edx, dword [esp + 0x80]
sub eax, edi
push 0x51
push 0
add eax, esi
push 0
push edx
push eax
mov eax, dword [ebx + 4]
push 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x547570]
mov esi, 0x400
mov dword [esp + 0x10], eax
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
jg 0x4b4583
cmp dword [eax - 4], esi
jge 0x4b460a
mov ecx, dword [eax - 8]
cmp ecx, 0x400
mov dword [esp + 0x20], ecx
jle 0x4b4598
test ecx, ecx
mov esi, ecx
je 0x4b45c3
lea ecx, [esi + esi + 0xe]
push ecx
call fcn.00532695
add esp, 4
test eax, eax
je 0x4b4737
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov edi, eax
lea esi, [ebp + 0xc]
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], edx
mov eax, dword [0x547574]
cmp ebp, eax
je 0x4b4606
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b4606
push ebp
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push 0x400
push eax
mov eax, dword [edx]
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
lea esi, [ecx - 0xc]
cmp eax, 1
jle 0x4b466d
lea ecx, [esp + 0x10]
call fcn.004124c0
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push edx
call fcn.00405530
test eax, eax
je 0x4b466d
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x10]
add esi, 0xc
lea ecx, [eax + eax + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b46b8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b46b8
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
dec eax
sub edx, 4
test eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
jge 0x4b451a
mov eax, dword [ebx + 0x28]
test eax, eax
jle 0x4b46ed
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x28]
test eax, eax
jle 0x4b4858
mov eax, dword [ebx + 0x70]
lea ebp, [ebx + 0x70]
mov esi, 0x400
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
mov dword [esp + 0x1c], ecx
jg 0x4b471b
cmp dword [eax - 4], esi
jge 0x4b47b9
mov eax, dword [eax - 8]
cmp eax, esi
mov dword [esp + 0x20], eax
jle 0x4b473e
test eax, eax
mov esi, eax
jne 0x4b473e
mov ecx, dword [0x547570]
mov dword [ebp], ecx
jmp 0x4b476c
xor eax, eax
jmp 0x4b460a
lea edx, [esi + esi + 0xe]
push edx
call fcn.00532695
add esp, 4
test eax, eax
je 0x4b4898
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov edi, dword [ebp]
lea ecx, [eax + eax + 2]
lea esi, [edx + 0xc]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], eax
mov eax, dword [0x547574]
cmp edx, eax
je 0x4b47b9
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b47b9
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00532222
add esp, 4
mov eax, dword [ebp]
mov edx, dword [ebx + 0x28]
push 0x400
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x4b483f
mov ecx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, ecx
je 0x4b4815
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b480c
mov ecx, dword [ebp]
sub ecx, 0xc
push ecx
call fcn.00532222
add esp, 4
mov edx, dword [0x547570]
mov dword [ebp], edx
mov eax, dword [esi + 4]
mov ecx, ebp
push eax
call fcn.00405530
test eax, eax
je 0x4b483f
mov ecx, dword [esi + 4]
mov edi, dword [ebp]
add esi, 0xc
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp]
mov dword [ecx - 8], eax
mov edx, dword [ebp]
mov word [edx + eax*2], 0
cmp dword [ebx + 0x34], 1
jle 0x4b4874
mov eax, dword [ebx + 4]
push 0
push 0x3e8
push 0x4d2
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebx + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov ebp, eax
and ebp, 0x40000000
je 0x4b489f
mov edx, dword [ebx + 4]
push edx
call edi
jmp 0x4b48ab
xor eax, eax
jmp 0x4b47bc
mov eax, dword [ebx + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x30]
push ecx
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test ebp, ebp
jne 0x4b4922
test esi, esi
je 0x4b48dd
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x4b48db
test eax, 0x20000000
je 0x4b48dd
xor esi, esi
lea eax, [esp + 0x20]
push 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test esi, esi
jne 0x4b4914
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
jmp 0x4b494f
lea edx, [esp + 0x44]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4b494f
mov eax, dword [ebx + 4]
push eax
call edi
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x20]
mov edi, eax
push ecx
push edi
call ebp
lea edx, [esp + 0x44]
push edx
push esi
call ebp
lea eax, [esp + 0x44]
push 2
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
sub ebp, edx
mov edx, dword [esp + 0x44]
sub edi, esi
lea eax, [ecx + edx]
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x50]
add eax, edx
cdq
sub eax, edx
mov esi, eax
mov eax, ebp
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub esi, eax
mov eax, dword [esp + 0x20]
cmp ecx, eax
jge 0x4b49a4
mov ecx, eax
jmp 0x4b49b3
mov eax, dword [esp + 0x28]
lea edx, [ecx + edi]
cmp edx, eax
jle 0x4b49b3
sub eax, edi
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp esi, eax
jl 0x4b49c8
mov eax, dword [esp + 0x2c]
lea edx, [esi + ebp]
cmp edx, eax
jle 0x4b49ca
sub eax, ebp
mov esi, eax
mov eax, dword [ebx + 4]
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b4a0d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b4a0d
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa4
ret 0x10