Function at 0x417750
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x513b94]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
jne case.0x417bcd.8505
mov esi, dword [ebp + 0xc]
cmp esi, 0x115
jne 0x417825
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4177af
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [edi + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push 1
push dword [edi + 4]
mov dword [ebp - 0x1c], 0x17
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov eax, dword [ebp + 0x10]
movzx ecx, ax
cmp ecx, 4
je 0x4177dc
cmp ecx, 5
jne 0x4177f3
shr eax, 0x10
push 1
push eax
push 1
push dword [edi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_SetScrollPos]
push 1
lea eax, [ebp - 0x20]
push eax
push 2
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov edi, dword [ebp - 0x24]
mov eax, 1
mov dword [edi], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x20a
jne 0x4178f6
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1105
push dword [edi + 4]
call ebx
test eax, eax
jne 0x417868
mov edi, dword [ebp - 0x24]
xor eax, eax
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x10]
shr eax, 0x10
movsx ecx, ax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x417849
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push 2
push dword [edi + 0x24]
mov dword [ebp - 0x1c], 4
call dword [sym.imp.USER32.dll_GetScrollInfo]
mov ecx, dword [edi + 4]
xor eax, eax
push ecx
test esi, esi
setle al
push eax
push 0x115
push ecx
call ebx
xor eax, eax
test esi, esi
push 1
setle al
lea eax, [eax*2 - 1]
add dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov edi, dword [ebp - 0x24]
mov eax, 1
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x83
jne 0x417968
cmp dword [ebp + 0x10], 0
je 0x417927
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xffcfffff
cmp eax, ecx
je 0x417927
push ecx
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x417b37
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [edi + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov edi, dword [ebp - 0x24]
mov eax, 1
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x114
jne 0x417996
cmp word [ebp + 0x10], 5
mov dword [eax], 0
je 0x417bef
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 5
jne 0x417a67
movsx eax, cx
shr ecx, 0x10
mov dword [ebp - 0x28], eax
movsx eax, cx
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4179ca
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [edi + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 2
call ebx
push 2
mov esi, eax
call ebx
mov ecx, dword [ebp - 0x28]
push 1
push dword [ebp - 0x2c]
sub ecx, eax
push esi
push 0
push ecx
push dword [edi + 0x24]
mov edi, dword [sym.imp.USER32.dll_MoveWindow]
call edi
push 3
call ebx
push 3
mov esi, eax
call ebx
mov ecx, dword [ebp - 0x2c]
push 1
push esi
push dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
sub ecx, eax
push ecx
push 0
push dword [esi + 0x28]
call edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push 1
push dword [esi + 4]
mov dword [ebp - 0x1c], 0x17
call dword [sym.imp.USER32.dll_GetScrollInfo]
push 1
lea eax, [ebp - 0x20]
push eax
push 2
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x417a5d
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
inc eax
cmp ecx, eax
jge 0x417a5d
push 5
push dword [esi + 0x24]
jmp 0x417b31
push 0
push dword [esi + 0x24]
jmp 0x417b31
cmp esi, 0x1114
jne 0x417acf
mov eax, dword [edi + 0x18]
test eax, eax
je 0x417a8b
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [edi + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push 1
push dword [edi + 4]
mov dword [ebp - 0x1c], 0x17
call dword [sym.imp.USER32.dll_GetScrollInfo]
push 1
lea eax, [ebp - 0x20]
push eax
push 2
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x417b2c
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
inc eax
cmp ecx, eax
jge 0x417b2c
push 5
jmp 0x417b2e
mov edx, dword [ebp + 0x10]
cmp esi, 0x204e
jne 0x417ba2
mov eax, dword [ecx + 8]
cmp eax, 0xfffffe39
jne 0x417b58
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push 1
push dword [edi + 4]
mov dword [ebp - 0x1c], 0x17
call dword [sym.imp.USER32.dll_GetScrollInfo]
push 1
lea eax, [ebp - 0x20]
push eax
push 2
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x417b2c
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
inc eax
cmp ecx, eax
jge 0x417b2c
push 5
jmp 0x417b2e
push 0
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [ebp - 0x24]
mov eax, 1
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0xfffffff4
jne 0x417bb0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
push ecx
push edx
lea ecx, [edi + 0x24]
call fcn.00414340
cmp dword [ebp - 0x28], 0
mov edi, dword [ebp - 0x24]
mov dword [edi], eax
jne 0x417bef
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 0x10]
lea eax, [esi - 0x202b]
cmp eax, 0xea
ja case.0x417bcd.8505
movzx eax, byte [eax + 0x417c10]
jmp dword [eax*4 + 0x417c08]
cmp esi, 0x2132
ja 0x417bb5
je 0x417bd4
mov edi, eax
jmp 0x417b83
mov edi, dword [ebp - 0x24]
jmp 0x417b83
lea eax, [esi - 0x2133]
cmp eax, 0xdd
ja case.0x417bcd.8505
movzx eax, byte [eax + 0x417d04]
jmp dword [eax*4 + 0x417cfc]
mov edi, eax
jmp case.0x417b9b.8235
mov edi, dword [ebp - 0x24]
push ecx
push edx
lea eax, [esi - 0x2000]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18