Function at 0x486740
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 [0x4d9540]
mov eax, dword [ebx + 0x20]
push esi
push edi
mov dword [esp + 0x18], ecx
test al, 0xf0
push eax
mov ecx, ebx
jne 0x486783
call fcn.004874e0
and eax, 0xffff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
jmp 0x486790
call fcn.004874e0
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.0048eb30
mov ecx, dword [esp + 0x20]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x486819
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4867e9
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4867f0
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x486800
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00401630
jmp 0x486819
lea ecx, [esp + 0x18]
call fcn.0040e950
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 [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x486848
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x486848
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
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.0048eb30
mov edi, dword [eax]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4d9544]
add esp, 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4868a0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4868a0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
push edi
push 0
push 0x143
push ebp
call esi
lea eax, [esp + 0x14]
push 0x49
push eax
call fcn.0048eb30
mov ecx, dword [esp + 0x20]
mov edi, eax
add esp, 8
mov eax, dword [edi]
cmp ecx, eax
je 0x48690a
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4868da
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4868e1
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4868f1
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401630
jmp 0x48690a
lea ecx, [esp + 0x18]
call fcn.0040e950
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 [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x486939
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x486939
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004c5432
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.0048eb30
mov ecx, dword [esp + 0x20]
mov edi, eax
add esp, 8
mov eax, dword [edi]
cmp ecx, eax
je 0x4869aa
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x48697a
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x486981
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x486991
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401630
jmp 0x4869aa
lea ecx, [esp + 0x18]
call fcn.0040e950
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 [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4869d9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4869d9
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004c5432
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 0x486a34
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 0x486ac6
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x486ae9
mov ecx, dword [0x4d9540]
mov dword [esi], ecx
mov edi, dword [ebx + 0x6c]
test edi, edi
jne 0x486ad9
xor eax, eax
jmp 0x486ae0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.00401630
lea edx, [esp + 0x6c]
mov ecx, ebx
push edx
call fcn.00486600
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 0x486b50
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 0x486b8e
mov dword [esp + 0x10], 0
test eax, eax
jge 0x486b9a
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 0x486c19
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 0x486c1b
push 1
mov ecx, ebx
call fcn.00487690
mov eax, dword [esp + 0x1c]
test eax, eax
jg 0x486c36
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x486cc1
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.004875b0
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.004875b0
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.00487610
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.00487610
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 0x486d53
mov edx, str.Achtung__
test edx, edx
je 0x486d16
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x486d18
xor esi, esi
mov eax, dword [edi]
cmp dword [eax - 0xc], 1
jg 0x486d25
cmp esi, dword [eax - 4]
jle 0x486d38
mov ecx, edi
call fcn.0040e950
push esi
mov ecx, edi
call fcn.004012f0
cmp eax, ebp
je 0x486d53
mov eax, dword [edi]
inc esi
push esi
push str.Achtung__
push eax
call fcn.004011c0
add esp, 0xc
mov ecx, edi
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [esp + 0x40]
mov edx, 4
cmp eax, edx
jne 0x486d85
mov ecx, dword [ebx + 0x28]
mov eax, 7
cmp ecx, ebp
jne 0x486d6f
mov dword [ebx + 0x28], eax
mov dword [esp + 0x54], 6
mov dword [esp + 0x58], eax
mov esi, 2
jmp 0x486e3a
cmp eax, 3
jne 0x486db8
cmp dword [ebx + 0x28], ebp
jne 0x486d96
mov dword [ebx + 0x28], 2
mov dword [esp + 0x54], 6
mov dword [esp + 0x58], 7
mov dword [esp + 0x5c], 2
mov esi, 3
jmp 0x486e3a
cmp eax, 5
jne 0x486dd8
cmp dword [ebx + 0x28], ebp
jne 0x486dc9
mov dword [ebx + 0x28], 2
mov esi, 2
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], esi
jmp 0x486e3a
cmp eax, 1
jne 0x486dfc
cmp dword [ebx + 0x28], ebp
jne 0x486de9
mov dword [ebx + 0x28], 2
mov esi, 2
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], esi
jmp 0x486e3a
mov ecx, 2
cmp eax, ecx
mov eax, dword [ebx + 0x28]
jne 0x486e26
cmp eax, ebp
jne 0x486e0f
mov dword [ebx + 0x28], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], 5
mov esi, 3
jmp 0x486e3a
cmp eax, ebp
jne 0x486e31
mov dword [ebx + 0x28], 1
mov esi, 1
mov dword [esp + 0x54], esi
cmp dword [ebx + 0x2c], ebp
je 0x486e48
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 0x486eb8
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 0x4870b4
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 0x486efe
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 [0x4d9540]
mov esi, 0x400
mov dword [esp + 0x10], eax
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
jg 0x486f63
cmp dword [eax - 4], esi
jge 0x486fea
mov ecx, dword [eax - 8]
cmp ecx, 0x400
mov dword [esp + 0x20], ecx
jle 0x486f78
test ecx, ecx
mov esi, ecx
je 0x486fa3
lea ecx, [esi + esi + 0xe]
push ecx
call fcn.004c58a5
add esp, 4
test eax, eax
je 0x487117
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 [0x4d9544]
cmp ebp, eax
je 0x486fe6
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x486fe6
push ebp
call fcn.004c5432
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 0x48704d
lea ecx, [esp + 0x10]
call fcn.0040e950
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push edx
call fcn.004012f0
ret
mov byte [0xc085fff7], al
je 0x48704d
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 [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x487098
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x487098
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
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 0x486efa
mov eax, dword [ebx + 0x28]
test eax, eax
jle 0x4870cd
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 0x487238
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 0x4870fb
cmp dword [eax - 4], esi
jge 0x487199
mov eax, dword [eax - 8]
cmp eax, esi
mov dword [esp + 0x20], eax
jle 0x48711e
test eax, eax
mov esi, eax
jne 0x48711e
mov ecx, dword [0x4d9540]
mov dword [ebp], ecx
jmp 0x48714c
xor eax, eax
jmp 0x486fea
lea edx, [esi + esi + 0xe]
push edx
call fcn.004c58a5
add esp, 4
test eax, eax
je 0x487278
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 [0x4d9544]
cmp edx, eax
je 0x487199
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x487199
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004c5432
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 0x48721f
mov ecx, dword [0x4d9544]
add eax, 0xfffffff4
cmp eax, ecx
je 0x4871f5
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4871ec
mov ecx, dword [ebp]
sub ecx, 0xc
push ecx
call fcn.004c5432
add esp, 4
mov edx, dword [0x4d9540]
mov dword [ebp], edx
mov eax, dword [esi + 4]
mov ecx, ebp
push eax
call fcn.004012f0
test eax, eax
je 0x48721f
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 0x487254
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 0x48727f
mov edx, dword [ebx + 4]
push edx
call edi
jmp 0x48728b
xor eax, eax
jmp 0x48719c
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 0x487302
test esi, esi
je 0x4872bd
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x4872bb
test eax, 0x20000000
je 0x4872bd
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 0x4872f4
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 0x48732f
lea edx, [esp + 0x44]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x48732f
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 0x487384
mov ecx, eax
jmp 0x487393
mov eax, dword [esp + 0x28]
lea edx, [ecx + edi]
cmp edx, eax
jle 0x487393
sub eax, edi
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp esi, eax
jl 0x4873a8
mov eax, dword [esp + 0x2c]
lea edx, [esi + ebp]
cmp edx, eax
jle 0x4873aa
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 [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4873ed
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4873ed
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa4
ret 0x10