Function at 0x418190
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x517ba0]
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.0x41860d.8505
mov esi, dword [ebp + 0xc]
cmp esi, 0x115
jne 0x418265
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4181ef
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 0x41821c
cmp ecx, 5
jne 0x418233
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.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x20a
jne 0x418336
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1105
push dword [edi + 4]
call ebx
test eax, eax
jne 0x4182a8
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.004a4433
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 0x418289
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.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x83
jne 0x4183a8
cmp dword [ebp + 0x10], 0
je 0x418367
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xffcfffff
cmp eax, ecx
je 0x418367
push ecx
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x418577
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.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x114
jne 0x4183d6
cmp word [ebp + 0x10], 5
mov dword [eax], 0
je 0x41862f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 5
jne 0x4184a7
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 0x41840a
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 0x41849d
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
inc eax
cmp ecx, eax
jge 0x41849d
push 5
push dword [esi + 0x24]
jmp 0x418571
push 0
push dword [esi + 0x24]
jmp 0x418571
cmp esi, 0x1114
jne 0x41850f
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4184cb
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 0x41856c
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
inc eax
cmp ecx, eax
jge 0x41856c
push 5
jmp 0x41856e
mov edx, dword [ebp + 0x10]
cmp esi, 0x204e
jne 0x4185e2
mov eax, dword [ecx + 8]
cmp eax, 0xfffffe39
jne 0x418598
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 0x41856c
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
inc eax
cmp ecx, eax
jge 0x41856c
push 5
jmp 0x41856e
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.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0xfffffff4
jne 0x4185f0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
push ecx
push edx
lea ecx, [edi + 0x24]
call fcn.00414d80
cmp dword [ebp - 0x28], 0
mov edi, dword [ebp - 0x24]
mov dword [edi], eax
jne 0x41862f
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 0x10]
lea eax, [esi - 0x202b]
cmp eax, 0xea
ja case.0x41860d.8505
movzx eax, byte [eax + 0x418650]
jmp dword [eax*4 + 0x418648]
cmp esi, 0x2132
ja 0x4185f5
je 0x418614
mov edi, eax
jmp 0x4185c3
mov edi, dword [ebp - 0x24]
jmp 0x4185c3
lea eax, [esi - 0x2133]
cmp eax, 0xdd
ja case.0x41860d.8505
movzx eax, byte [eax + 0x418744]
jmp dword [eax*4 + 0x41873c]
mov edi, eax
jmp case.0x4185db.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.004a4433
mov esp, ebp
pop ebp
ret 0x18