Function at 0x4b2e20
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 [0x546560]
mov eax, dword [ebx + 0x20]
push esi
push edi
mov dword [esp + 0x18], ecx
test al, 0xf0
push eax
mov ecx, ebx
jne 0x4b2e63
call fcn.004b3bc0
and eax, 0xffff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
jmp 0x4b2e70
call fcn.004b3bc0
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.004bc8d0
mov ecx, dword [esp + 0x20]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x4b2ef9
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4b2ec9
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4b2ed0
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4b2ee0
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00405870
jmp 0x4b2ef9
lea ecx, [esp + 0x18]
call fcn.00412670
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b2f28
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b2f28
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
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.004bc8d0
mov edi, dword [eax]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
add esp, 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b2f80
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b2f80
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
push edi
push 0
push 0x143
push ebp
call esi
lea eax, [esp + 0x14]
push 0x49
push eax
call fcn.004bc8d0
mov ecx, dword [esp + 0x20]
mov edi, eax
add esp, 8
mov eax, dword [edi]
cmp ecx, eax
je 0x4b2fea
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4b2fba
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4b2fc1
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4b2fd1
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00405870
jmp 0x4b2fea
lea ecx, [esp + 0x18]
call fcn.00412670
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4b3019
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b3019
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00531732
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.004bc8d0
mov ecx, dword [esp + 0x20]
mov edi, eax
add esp, 8
mov eax, dword [edi]
cmp ecx, eax
je 0x4b308a
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4b305a
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4b3061
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4b3071
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00405870
jmp 0x4b308a
lea ecx, [esp + 0x18]
call fcn.00412670
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4b30b9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b30b9
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00531732
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 0x4b3114
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 0x4b31a6
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4b31c9
mov ecx, dword [0x546560]
mov dword [esi], ecx
mov edi, dword [ebx + 0x6c]
test edi, edi
jne 0x4b31b9
xor eax, eax
jmp 0x4b31c0
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.004b2ce0
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 0x4b3230
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 0x4b326e
mov dword [esp + 0x10], 0
test eax, eax
jge 0x4b327a
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 0x4b32f9
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 0x4b32fb
push 1
mov ecx, ebx
call fcn.004b3d70
mov eax, dword [esp + 0x1c]
test eax, eax
jg 0x4b3316
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4b33a1
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.004b3c90
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.004b3c90
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.004b3cf0
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.004b3cf0
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 0x4b3433
mov edx, str.Achtung__
test edx, edx
je 0x4b33f6
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x4b33f8
xor esi, esi
mov eax, dword [edi]
cmp dword [eax - 0xc], 1
jg 0x4b3405
cmp esi, dword [eax - 4]
jle 0x4b3418
mov ecx, edi
call fcn.00412670
push esi
mov ecx, edi
call fcn.00405530
cmp eax, ebp
je 0x4b3433
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 0x4b3465
mov ecx, dword [ebx + 0x28]
mov eax, 7
cmp ecx, ebp
jne 0x4b344f
mov dword [ebx + 0x28], eax
mov dword [esp + 0x54], 6
mov dword [esp + 0x58], eax
mov esi, 2
jmp 0x4b351a
cmp eax, 3
jne 0x4b3498
cmp dword [ebx + 0x28], ebp
jne 0x4b3476
mov dword [ebx + 0x28], 2
mov dword [esp + 0x54], 6
mov dword [esp + 0x58], 7
mov dword [esp + 0x5c], 2
mov esi, 3
jmp 0x4b351a
cmp eax, 5
jne 0x4b34b8
cmp dword [ebx + 0x28], ebp
jne 0x4b34a9
mov dword [ebx + 0x28], 2
mov esi, 2
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], esi
jmp 0x4b351a
cmp eax, 1
jne 0x4b34dc
cmp dword [ebx + 0x28], ebp
jne 0x4b34c9
mov dword [ebx + 0x28], 2
mov esi, 2
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], esi
jmp 0x4b351a
mov ecx, 2
cmp eax, ecx
mov eax, dword [ebx + 0x28]
jne 0x4b3506
cmp eax, ebp
jne 0x4b34ef
mov dword [ebx + 0x28], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], 5
mov esi, 3
jmp 0x4b351a
cmp eax, ebp
jne 0x4b3511
mov dword [ebx + 0x28], 1
mov esi, 1
mov dword [esp + 0x54], esi
cmp dword [ebx + 0x2c], ebp
je 0x4b3528
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 0x4b3598
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 0x4b3794
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 0x4b35de
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 [0x546560]
mov esi, 0x400
mov dword [esp + 0x10], eax
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
jg 0x4b3643
cmp dword [eax - 4], esi
jge 0x4b36ca
mov ecx, dword [eax - 8]
cmp ecx, 0x400
mov dword [esp + 0x20], ecx
jle 0x4b3658
test ecx, ecx
mov esi, ecx
je 0x4b3683
lea ecx, [esi + esi + 0xe]
push ecx
call fcn.00531ba5
add esp, 4
test eax, eax
je 0x4b37f7
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 [0x546564]
cmp ebp, eax
je 0x4b36c6
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b36c6
push ebp
call fcn.00531732
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 0x4b372d
lea ecx, [esp + 0x10]
call fcn.00412670
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push edx
call fcn.00405530
test eax, eax
je 0x4b372d
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b3778
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b3778
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
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 0x4b35da
mov eax, dword [ebx + 0x28]
test eax, eax
jle 0x4b37ad
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 0x4b3918
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 0x4b37db
cmp dword [eax - 4], esi
jge 0x4b3879
mov eax, dword [eax - 8]
cmp eax, esi
mov dword [esp + 0x20], eax
jle 0x4b37fe
test eax, eax
mov esi, eax
jne 0x4b37fe
mov ecx, dword [0x546560]
mov dword [ebp], ecx
jmp 0x4b382c
xor eax, eax
jmp 0x4b36ca
lea edx, [esi + esi + 0xe]
push edx
call fcn.00531ba5
add esp, 4
test eax, eax
je 0x4b3958
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 [0x546564]
cmp edx, eax
je 0x4b3879
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b3879
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00531732
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 0x4b38ff
mov ecx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, ecx
je 0x4b38d5
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b38cc
mov ecx, dword [ebp]
sub ecx, 0xc
push ecx
call fcn.00531732
add esp, 4
mov edx, dword [0x546560]
mov dword [ebp], edx
mov eax, dword [esi + 4]
mov ecx, ebp
push eax
call fcn.00405530
test eax, eax
je 0x4b38ff
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 0x4b3934
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 0x4b395f
mov edx, dword [ebx + 4]
push edx
call edi
jmp 0x4b396b
xor eax, eax
jmp 0x4b387c
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 0x4b39e2
test esi, esi
je 0x4b399d
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x4b399b
test eax, 0x20000000
je 0x4b399d
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 0x4b39d4
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 0x4b3a0f
lea edx, [esp + 0x44]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4b3a0f
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 0x4b3a64
mov ecx, eax
jmp 0x4b3a73
mov eax, dword [esp + 0x28]
lea edx, [ecx + edi]
cmp edx, eax
jle 0x4b3a73
sub eax, edi
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp esi, eax
jl 0x4b3a88
mov eax, dword [esp + 0x2c]
lea edx, [esi + ebp]
cmp edx, eax
jle 0x4b3a8a
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b3acd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b3acd
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa4
ret 0x10